Folder creation - How to ignore case sensitivity?

Is there a way to ignore case when folder creation runs?

Sometimes our shotnames get mistakenly made into lowercase when they where upper case or the other way around.
Currently this breaks folder creation as the registered path was in another case.

As we are on Windows case sensitivity in paths is non existent so it shouldnt breaks folder creation for us.

3 Likes

I’ve hacked the core hook https://github.com/shotgunsoftware/tk-core/blob/master/hooks/process_folder_name.py

Where it returns the folder-name, just return str_value.lower()

I make no promises that this doesn’t break everything else horrifically!

4 Likes

Im going to try that!
Thanks!

1 Like

I ended up modifying the path_cache.py in tk-core to do this. I don’t think I ever submitted a pull request, but here’s my fix.

4 Likes

Has there been any official development on this?

Windows does not care about case sensitivity but Shotgun breaks when we rename a Shot from lowercase to uppercase or the other way.

Any official method to make it care less would be grand! :slight_smile: