2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

Make scans in subfolders somewhat visible

This commit is contained in:
Philip Sargent 2022-09-24 00:34:39 +03:00
parent f3ecdd6d87
commit 760dbc588a
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -66,7 +66,7 @@
{% endfor %}
<ul>
{% for d in dirs %}
<li>folder exists: <em>{{d}}</em>
<li><em>{{d}}</em>
{% endfor %}
</ul>
</p>