Skip to content
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

umask settings ignored in cache directory creation #332

Open
karakusc opened this issue Oct 3, 2024 · 0 comments
Open

umask settings ignored in cache directory creation #332

karakusc opened this issue Oct 3, 2024 · 0 comments

Comments

@karakusc
Copy link

karakusc commented Oct 3, 2024

In Linux the umask setting defines the default permissions for newly created files and directories. For instance umask 000 implies that newly created files and directories are created with open permissions by default. diskcache does not seem to respect this setting while creating the cache directory, as the permissions are hard-coded to 755:
https://github.com/grantjenks/python-diskcache/blob/master/diskcache/core.py#L447

Would it be possible to use the default permissions provided by the OS in creating the cache directory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant