From 746e46c43e53ef2731bbf757354cc7f0cc03ae04 Mon Sep 17 00:00:00 2001 From: nd <git@notandy.de> Date: Sat, 11 Dec 2021 17:19:40 +0100 Subject: [PATCH] do not show hidden files in directory listings --- directory-listing/create-index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/directory-listing/create-index.py b/directory-listing/create-index.py index a3a16e1..011a8c2 100755 --- a/directory-listing/create-index.py +++ b/directory-listing/create-index.py @@ -67,7 +67,7 @@ def main(inputfolder, outputfolder, ignore_files): <td class="size">-</td> <td class="date">-</td> </tr> - {% for entry, stat, is_dir in entries %} + {% for entry, stat, is_dir in entries if not entry.startswith('.') %} <tr> <td class="link"> <a href="{{ entry + ('/' if is_dir else '') }}" title="{{ entry }}">{{ entry + ('/' if is_dir else '') }}</a> -- GitLab