diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-18 19:15:41 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-18 19:15:41 +0200 |
commit | c1ddc444801c0cd4d33ca5437d0268fbc3d04afc (patch) | |
tree | c7905bf404228f510770e9eb404961ccc0c99da1 /module/web | |
parent | Added tag v0.4.6 for changeset 4979df70ef1a (diff) | |
download | pyload-c1ddc444801c0cd4d33ca5437d0268fbc3d04afc.tar.xz |
closed #333
Diffstat (limited to 'module/web')
-rw-r--r-- | module/web/pyload_app.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py index 33ad6612f..4cd07fa16 100644 --- a/module/web/pyload_app.py +++ b/module/web/pyload_app.py @@ -36,7 +36,7 @@ from webinterface import PYLOAD, PYLOAD_DIR, PROJECT_DIR, SETUP from utils import render_to_response, parse_permissions, parse_userdata, login_required, get_permission, set_permission from filters import relpath, unquotepath -from module.utils import formatSize, decode +from module.utils import formatSize, decode, fs_decode # Helper @@ -183,7 +183,7 @@ def downloads(): 'files': [] } - items = [decode(x) for x in listdir(root)] + items = [fs_decode(x) for x in listdir(root)] for item in sorted(items): if isdir(join(root, item)): @@ -192,10 +192,11 @@ def downloads(): 'path': item, 'files': [] } - for file in sorted(listdir(join(root, item))): + files = [fs_decode(x) for x in listdir(join(root, item))] + for file in sorted(files): try: if isfile(join(root, item, file)): - folder['files'].append(decode(file)) + folder['files'].append(file) except: pass |