Fixed a typo, int() the permissions string

This commit is contained in:
rembo10
2013-09-09 14:20:34 +05:30
parent 2e1c9d7f84
commit d9cd120ca8
2 changed files with 2 additions and 2 deletions

View File

@@ -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', '')

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