1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00

norm mkdtemp for chmod

This commit is contained in:
deadc0de6
2020-11-13 16:06:04 +01:00
parent 0f79a29ab2
commit 4901e1b969

View File

@@ -65,7 +65,9 @@ def get_string(length):
def get_tempdir(): def get_tempdir():
"""Get a temporary directory""" """Get a temporary directory"""
return tempfile.mkdtemp(suffix=TMPSUFFIX) tmpdir = tempfile.mkdtemp(suffix=TMPSUFFIX)
os.chmod(tmpdir, 0o755)
return tmpdir
def create_random_file(directory, content=None, def create_random_file(directory, content=None,