Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions diskcache/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def _write(self, full_path, iterator, mode, encoding=None):

for count in range(1, 11):
with cl.suppress(OSError):
os.makedirs(full_dir)
os.makedirs(full_dir, 0o700)

try:
# Another cache may have deleted the directory before
Expand Down Expand Up @@ -444,7 +444,7 @@ def __init__(self, directory=None, timeout=60, disk=Disk, **settings):

if not op.isdir(directory):
try:
os.makedirs(directory, 0o755)
os.makedirs(directory, 0o700)
except OSError as error:
if error.errno != errno.EEXIST:
raise EnvironmentError(
Expand Down