mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-14 07:39:36 +01:00
Fixed a typo, int() the permissions string
This commit is contained in:
@@ -471,7 +471,7 @@ def initialize():
|
||||
|
||||
INTERFACE = check_setting_str(CFG, 'General', 'interface', 'default')
|
||||
FOLDER_PERMISSIONS = check_setting_str(CFG, 'General', 'folder_permissions', '0755')
|
||||
FILE_PERSMISSIONS = check_setting_str(CFG, 'General', 'file_permissions', '0644')
|
||||
FILE_PERMISSIONS = check_setting_str(CFG, 'General', 'file_permissions', '0644')
|
||||
|
||||
ENCODERFOLDER = check_setting_str(CFG, 'General', 'encoderfolder', '')
|
||||
ENCODER_PATH = check_setting_str(CFG, 'General', 'encoder_path', '')
|
||||
|
||||
@@ -871,7 +871,7 @@ def updateFilePermissions(albumpaths):
|
||||
for files in f:
|
||||
full_path = os.path.join(r, files)
|
||||
try:
|
||||
os.chmod(full_path, headphones.FILE_PERMISSIONS)
|
||||
os.chmod(full_path, int(headphones.FILE_PERMISSIONS))
|
||||
except:
|
||||
logger.error("Could not change permissions for file: " + full_path.decode(headphones.SYS_ENCODING, 'replace'))
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user