summaryrefslogtreecommitdiffstats
path: root/core/views/uploads.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-09-24 00:34:39 +0300
committerPhilip Sargent <philip.sargent@klebos.com>2022-09-24 00:34:39 +0300
commit760dbc588a1818f97eac04d80e94ad6133595558 (patch)
tree0f4d59d8bc88b8d25e3917ea095809da25cbffaf /core/views/uploads.py
parentf3ecdd6d879a85b966d2e308e7207e89d9f459ce (diff)
downloadtroggle-760dbc588a1818f97eac04d80e94ad6133595558.tar.gz
troggle-760dbc588a1818f97eac04d80e94ad6133595558.tar.bz2
troggle-760dbc588a1818f97eac04d80e94ad6133595558.zip
Make scans in subfolders somewhat visible
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r--core/views/uploads.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py
index 7e25980..2aff64b 100644
--- a/core/views/uploads.py
+++ b/core/views/uploads.py
@@ -486,7 +486,8 @@ def scanupload(request, path=None):
try:
for f in dirpath.iterdir():
if f.is_dir():
- dirs.append(f.name)
+ for d in f.iterdir():
+ dirs.append(f'{f.name}/{d.name}')
if f.is_file():
files.append(f.name)
except FileNotFoundError: