diff options
Diffstat (limited to 'repo')
| -rw-r--r-- | repo/www/helpers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/repo/www/helpers.py b/repo/www/helpers.py index 57f679d..80115b7 100644 --- a/repo/www/helpers.py +++ b/repo/www/helpers.py @@ -24,9 +24,10 @@ def _fill_directories(files, top_dir): directories[fdir].files.append(fname) - if fdir: + while fdir: parent, child = path.split(fdir) directories[parent].subfolders.add(child) + fdir = parent return directories |
