From c967776f8ce1de7eff8b21b0f16244821a378a05 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 15 Nov 2020 10:58:11 +0100 Subject: [PATCH] mode is int --- dotdrop/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dotdrop/utils.py b/dotdrop/utils.py index 0c989e9..4d6b06d 100644 --- a/dotdrop/utils.py +++ b/dotdrop/utils.py @@ -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)