summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/utilities.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/utilities.py b/backend/utilities.py
index 1057ac9d..bcb35578 100644
--- a/backend/utilities.py
+++ b/backend/utilities.py
@@ -225,7 +225,8 @@ class Utilities:
folders.append({"file": file, "filest": filest, "is_dir": True})
elif include_files:
# Handle requested extensions if present
- if 'all_files' in include_ext or splitext(file.name)[1].lstrip('.') in include_ext:
+ if len(include_ext) == 0 or 'all_files' in include_ext \
+ or splitext(file.name)[1].lstrip('.') in include_ext:
if (is_hidden and include_hidden) or not is_hidden:
files.append({"file": file, "filest": filest, "is_dir": False})
# Filter logic