summaryrefslogtreecommitdiffstats
path: root/module/web/pyload/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/pyload/views.py')
-rw-r--r--module/web/pyload/views.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index 26ff28b16..c1cd31f5f 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -412,12 +412,15 @@ def path(request, path, type):
files = []
for f in folders:
- data = {}
- data['name'] = f
- data['fullpath'] = os.path.join(cwd, f)
- data['sort'] = data['fullpath'].lower()
- data['modified'] = datetime.fromtimestamp(int(os.path.getmtime(os.path.join(cwd, f))))
- data['ext'] = os.path.splitext(f)[1]
+ try:
+ data = {}
+ data['name'] = f
+ data['fullpath'] = os.path.join(cwd, f)
+ data['sort'] = data['fullpath'].lower()
+ data['modified'] = datetime.fromtimestamp(int(os.path.getmtime(os.path.join(cwd, f))))
+ data['ext'] = os.path.splitext(f)[1]
+ except:
+ continue
if os.path.isdir(os.path.join(cwd, f)):
data['type'] = 'dir'