There is no easy way to set permission to directories in collecting static files
|Reported by:||Vajrasky Kok||Owned by:||Vajrasky Kok|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This is the continuation of ticket #21219. Right now, the files will get permissions from FILE_UPLOAD_PERMISSIONS (unless you subclass the static files storage class and set file_permissions) in collecting static files, but not directories. Directories will not get permission from FILE_UPLOAD_DIRECTORY_PERMISSIONS (or FILE_UPLOAD_FILE_PERMISSIONS).
I suggest that we add feature where the directories in collecting static files will get permission be default from FILE_UPLOAD_DIRECTORY_PERMISSIONS (unless we subclass the static file storage class and set directory_permissions attributes).