summaryrefslogtreecommitdiff
path: root/backend/utilities.py
diff options
context:
space:
mode:
authorMarco Rodolfi <marco.rodolfi@tuta.io>2023-06-22 13:16:37 +0200
committerMarco Rodolfi <marco.rodolfi@tuta.io>2023-06-22 13:16:37 +0200
commit777e7893e3d52f6aa401dbff3335c56f0e5e99c3 (patch)
tree45e39a4f278f4093e5d7be532005a5601a725a31 /backend/utilities.py
parentb2a1b172e266d5f05093a7edafa59d6ce53315f2 (diff)
downloaddecky-loader-777e7893e3d52f6aa401dbff3335c56f0e5e99c3.tar.gz
decky-loader-777e7893e3d52f6aa401dbff3335c56f0e5e99c3.zip
fix: handle missing backend extension listv2.10.2-pre1
Diffstat (limited to 'backend/utilities.py')
-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