From 5c60019d38b9bde54ff80c4ad09e3d00fc5a9ede Mon Sep 17 00:00:00 2001 From: rembo10 Date: Sat, 21 Sep 2013 11:33:18 +0530 Subject: [PATCH] Use int(x,8) for file permissions --- headphones/postprocessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index ba61ef91..368bd770 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -871,7 +871,7 @@ def updateFilePermissions(albumpaths): for files in f: full_path = os.path.join(r, files) try: - os.chmod(full_path, int(headphones.FILE_PERMISSIONS)) + os.chmod(full_path, int(headphones.FILE_PERMISSIONS, 8)) except: logger.error("Could not change permissions for file: " + full_path.decode(headphones.SYS_ENCODING, 'replace')) continue