Filter out index.html files from directory listings
All checks were successful
continuous-integration/drone/push Build is passing

Exclude generated index.html files when building the directory tree to prevent them from appearing in the listings. Since the generator deploys index.html files to the same bucket, they would otherwise show up as regular files in subsequent runs.
This commit is contained in:
nemunaire 2026-01-06 19:01:55 +07:00
commit 26383b76cb

View file

@ -120,6 +120,11 @@ class DirectoryTree:
logger.debug(f"Skipping directory marker: {key}")
continue
# Skip generated index.html files
if parts[-1] == 'index.html':
logger.debug(f"Skipping generated index file: {key}")
continue
# Handle files at root
if len(parts) == 1:
self.files.append({