mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-14 15:49:36 +01:00
Use int(x,8) for file permissions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user