From 760dbc588a1818f97eac04d80e94ad6133595558 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 24 Sep 2022 00:34:39 +0300 Subject: [PATCH] Make scans in subfolders somewhat visible --- core/views/uploads.py | 3 ++- templates/walletform.html | 2 +- 2 files changed, 3 insertions(+), 2 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: diff --git a/templates/walletform.html b/templates/walletform.html index 1b87284..04ad639 100644 --- a/templates/walletform.html +++ b/templates/walletform.html @@ -66,7 +66,7 @@ {% endfor %}