Save blender files with lowercase Is there a way to make blender only use lowercase letters when saving a file? 
And if not, is there a way around it? For instance executing a script to change the file name to lowercase before actually saving the file in a directory?

For some context, I work with multiple blender artist, and even tho we have a naming convention it does happen that some of us slip back in their old habits of capitalizing names, which creates some problems with GIT that I would like to prevent.

PS. this is specifically about the name that's used to save the .blend file

Update: I believe I found a way to change the file name but only after it's saved, so now I'm looking for a way to pause blender to change the name.

    def execute(self, context):


        bpy.ops.wm.save_as_mainfile('INVOKE_DEFAULT')

        outname = bpy.path.basename(bpy.data.filepath)
        outpath = os.path.dirname(bpy.path.abspath(bpy.data.filepath))
        filename = bpy.path.basename(bpy.context.blend_data.filepath)


        filename = filename.lower()
        print(filename)
        if not bpy.app.handlers.save_post:
            print("not finished")
            return {'PASS_THROUGH'}
            if bpy.ops.file.execute():
                print("yes")

        else:
            print("finished")
        print('done')


#       wait = bpy.app.handlers.save_post
        print(filename)
        print("test111")
        bpy.ops.wm.save_mainfile(filepath=os.path.join(outpath, outname),
        check_existing=True)

        print(filename)
        self.SaveAsRotationFix()

        return {'FINISHED'}



This is what I'm currently working with, (probably not a very efficient way of doing this.)
My thought process is to be able to save the file with capitalization and after the file is created, run another save action to change the name to a lower case version.
This fixes the issue I have when saving without a pre-existing file.

Edit:
TLDR: if I save a file as Cube.blend I want it to change it to cube.blend
Override the Save Mainfile operator
Similarly to Add prefix to filename on &quot;Save Blender File&quot;  which on a quick parse could be given the standard CtrlS shortcut.
Another method is to override the save operator and simply pass the converted filepath to the save as operator.  Proof of concept code below. Simply prints the filepath to be &quot;rejigged&quot; and saved.  Notice how it becomess the operator in the menu and called by shortcut.
Below is the export operator from the templates rejigged to override &quot;wm.save_mainfile&quot;
import bpy

from bpy_extras.io_utils import ExportHelper
from bpy.props import StringProperty
from bpy.types import Operator


class ExportSomeData(Operator, ExportHelper):
    &quot;&quot;&quot;This appears in the tooltip of the operator and in the generated docs&quot;&quot;&quot;
    bl_idname = &quot;wm.save_mainfile&quot;  # 
    bl_label = &quot;Save...&quot;

    # ExportHelper mixin class uses this
    filename_ext = &quot;.blend&quot;

    filter_glob: StringProperty(
        default=&quot;*.blend&quot;,
        options={'HIDDEN'},
        maxlen=255, 
    )



    def execute(self, context):
        print(f&quot;Call save as, rejig {self.filepath}&quot;)
        #bpy.ops.wm.save_as_mainfile(filepath=self.filepath)
        return {'FINISHED'}




def register():
    bpy.utils.register_class(ExportSomeData)



def unregister():
    bpy.utils.unregister_class(ExportSomeData)



if __name__ == &quot;__main__&quot;:
    register()

This ofcourse won't help if a user chooses save as instead and uses an uppercase filename.