Directories permission
As I've seen in code, directories seems to be always created using 777 permission. Wouldn't it be a great idea to let user pass a custom permission? I saw mode was deprecated in version 2, but I didn't got the reason.
This would be good for security reasons alone.
I removed permissions because it may not be the same in staging or production. On the security side, directories are not created using 777 permission unless you are using a 000 umask!
Could you give an example to when/where file permissions would not be the same between
staging or production
...Or even with development?
I had the case for software that could be deployed on different servers from different clients using different security policies. But I will accept any PR that is not BC to re-introduce the feature.