memory-leaks

Still reachable: lots of words in many pages.
git clone https://git.kevinlegouguec.net/memory-leaks
Log | Files | Refs | README | LICENSE

commit 05e08f7a2aa8caa8479501ccc6123baed695a06d
parent 850e2513ea4995703d0aaaf5f6db8649dfa0e047
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Sun, 12 Apr 2020 17:51:29 +0200

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:
Mrepo/www/helpers.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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