Don't show .git directories in indexes.
This commit is contained in:
parent
89e5a1061a
commit
17fae8c60e
@ -146,7 +146,7 @@ def main(args):
|
|||||||
|
|
||||||
for path in paths:
|
for path in paths:
|
||||||
print(f"{path=}")
|
print(f"{path=}")
|
||||||
if path == 'index.html':
|
if path in [ 'index.html', '.git' ]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
fullpath = os.path.join(directory, path)
|
fullpath = os.path.join(directory, path)
|
||||||
|
Reference in New Issue
Block a user