Filter out index.html files from directory listings
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
459388fe60
commit
26383b76cb
1 changed files with 5 additions and 0 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue