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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user