summaryrefslogtreecommitdiff
path: root/repo/www/helpers.py
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-04-12 17:51:29 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-04-12 18:34:34 +0200
commit05e08f7a2aa8caa8479501ccc6123baed695a06d (patch)
tree3673261be82514bd25c079ba1347d1cc2733e736 /repo/www/helpers.py
parent850e2513ea4995703d0aaaf5f6db8649dfa0e047 (diff)
downloadmemory-leaks-05e08f7a2aa8caa8479501ccc6123baed695a06d.tar.xz
Start fixing some files being inaccessible
If an intermediate folder contains no leaf page, the previous code does not add it to the parent directory's subfolders. Still needs support from generate-deps.py.
Diffstat (limited to 'repo/www/helpers.py')
-rw-r--r--repo/www/helpers.py3
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