Skip to content

Conversation

joshbeard
Copy link
Owner

@joshbeard joshbeard commented Mar 15, 2025

Implement a new feature that allows skipping directories during indexing when they contain a specified noindex file(s). This provides users with a simple way to exclude private directories, prevent indexing of temporary files, and selectively control which directories appear in indexes.

source
├── four
│   └── foo.txt
├── one
│   └── foo.txt
├── three
│   ├── foo.txt
│   └── .noindex
└── two
    └── foo.txt
web-indexer --source source --target target --recursive --noindex-files .noindex
2025/03/14 23:33:47 INFO Generating index for sample
2025/03/14 23:33:47 INFO Skipping source/three (found noindex file .noindex)
2025/03/14 23:33:47 INFO Generated target/four/index.html
2025/03/14 23:33:47 INFO Generated target/one/index.html
2025/03/14 23:33:47 INFO Generated target/two/index.html
2025/03/14 23:33:47 INFO Generated target/index.html
target
├── four
│   └── index.html
├── index.html
├── one
│   └── index.html
└── two
    └── index.html

Resolves #67

Implement a new feature that allows skipping directories during indexing
when they contain a specified noindex file(s). This
provides users with a simple way to exclude private directories, prevent
indexing of temporary files, and selectively control which directories
appear in indexes.
@joshbeard joshbeard added the enhancement New feature or request label Mar 15, 2025
@joshbeard joshbeard self-assigned this Mar 15, 2025
@joshbeard joshbeard merged commit bfcbf98 into main Mar 15, 2025
5 checks passed
@joshbeard joshbeard deleted the no-index-file branch March 15, 2025 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: stop processing directories with certain file
1 participant