mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-15 22:00: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):
|
def chmod(path, mode, debug=False):
|
||||||
cm = int(mode, 8)
|
|
||||||
if debug:
|
if debug:
|
||||||
LOG.dbg('chmod {} {}'.format(oct(cm), path))
|
LOG.dbg('chmod {} {}'.format(oct(mode), path))
|
||||||
os.chmod(path, cm)
|
os.chmod(path, mode)
|
||||||
|
|||||||
Reference in New Issue
Block a user