🐛 Fix 500 on /api/files/local

Closes #3655
This commit is contained in:
Gina Häußge committed 2020-07-27 12:08:39 +02:00
1 parent 5246e2ccb4
commit 0188745d05
1 file changed
+6 -1
+6 -1
View File
@@ -63,7 +63,12 @@ def _create_lastmodified(path, recursive):
return max(lms)
else:
storage, path_in_storage = path.split("/", 1)
if "/" in path:
storage, path_in_storage = path.split("/", 1)
else:
storage = path
path_in_storage = None
try:
return fileManager.last_modified(storage, path=path_in_storage, recursive=recursive)
except Exception: