Use int(x,8) for file permissions

This commit is contained in:
rembo10
2013-09-21 11:33:18 +05:30
parent 8d6ff27882
commit 5c60019d38

View File

@@ -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