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: