mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-22 07:19:53 +00:00
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user