From 17fae8c60edbc6f75b9237a7c9dfd1db5c5e18bc Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Thu, 29 Jul 2021 14:19:32 +0100 Subject: [PATCH] Don't show .git directories in indexes. --- notes2web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes2web.py b/notes2web.py index 517e7f2..37380b1 100755 --- a/notes2web.py +++ b/notes2web.py @@ -146,7 +146,7 @@ def main(args): for path in paths: print(f"{path=}") - if path == 'index.html': + if path in [ 'index.html', '.git' ]: continue fullpath = os.path.join(directory, path)