forked from expo/troggle
Make scans in subfolders somewhat visible
This commit is contained in:
parent
f3ecdd6d87
commit
760dbc588a
@ -486,7 +486,8 @@ def scanupload(request, path=None):
|
|||||||
try:
|
try:
|
||||||
for f in dirpath.iterdir():
|
for f in dirpath.iterdir():
|
||||||
if f.is_dir():
|
if f.is_dir():
|
||||||
dirs.append(f.name)
|
for d in f.iterdir():
|
||||||
|
dirs.append(f'{f.name}/{d.name}')
|
||||||
if f.is_file():
|
if f.is_file():
|
||||||
files.append(f.name)
|
files.append(f.name)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for d in dirs %}
|
{% for d in dirs %}
|
||||||
<li>folder exists: <em>{{d}}</em>
|
<li><em>{{d}}</em>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user