Don't show .git directories in indexes.

This commit is contained in:
Akbar Rahman 2021-07-29 14:19:32 +01:00
parent 89e5a1061a
commit 17fae8c60e

View File

@ -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)