-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] dirMode
and fileMode
options for FilesystemCache
#3827
Comments
I think the current code is reasonable. We're doing the same in Symfony as well. Note that the mode is affected by the umask. So, it's not necessarily 0777. You can call
|
I was suggesting that Twig could add new |
Would you agree that using |
Any feedback on my suggestion @brandonkelly? |
What about not setting any permission at all and just creating the directories and files? |
@fabpot I don’t think Several libraries that work with files have |
(Sorry, didn’t mean to close the issue. Rogue trackpad click!) |
Currently
FilesystemCache
creates directories with777
permissions, and PHP files with666
permissions. It would be nice if newdirMode
andfileMode
options were supported, which could be used to override those default permissions.The text was updated successfully, but these errors were encountered: