mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 19:44:45 +00:00
norm mkdtemp for chmod
This commit is contained in:
@@ -65,7 +65,9 @@ def get_string(length):
|
||||
|
||||
def get_tempdir():
|
||||
"""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,
|
||||
|
||||
Reference in New Issue
Block a user