1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 04:58:05 +00:00

mode is int

This commit is contained in:
deadc0de6
2020-11-15 10:58:11 +01:00
parent fcbe750d42
commit c967776f8c

View File

@@ -326,7 +326,6 @@ def get_file_perm(path):
def chmod(path, mode, debug=False):
cm = int(mode, 8)
if debug:
LOG.dbg('chmod {} {}'.format(oct(cm), path))
os.chmod(path, cm)
LOG.dbg('chmod {} {}'.format(oct(mode), path))
os.chmod(path, mode)