we are looking to use our own python module whenever shotgun is creating folders or files.
Think of it as a custom python os module.
There are tk-apps like tk-shotgun-folders that are configurable with hooks.
However we like to make a change that affect all other tk-apps as well.
The best place to do a modification like that seems to be in
<path_to_sg_config>/install/core/python/tank/util/filesystem.py where the function such as
ensure_folder_exists and .
touch_file could be overwritten.
Essentially that is a modification to the tank module and with every future tank core update this modification would be undone. So I am really expecting that it is not a recommended thing to do.
Which leads to the questions:
1.) Is there a better way to change file and folder creation that is used by through out all of sgtk ?
2.) Is there an easy way to make this change configurable ?
(Not having to change anything in