How can I define the permissions for folders that Toolkit creates?

The creation process for folders that get generated by the Toolkit schema, can be customized in the process_folder_creation.py core hook:

To modify the hook you would copy the hook from the .../install/core/hooks folder over to your .../config/core/hooks folder and then modify it there. Or if you’re on a distributed config then you could take a copy from the GitHub repository or your bundle cache.

For all other folders that get created by Toolkit, such as folders that are defined in templates but not in the schema, you can use the ensure_folder_exists.py core hook:

1 Like