pub trait TraversalFilter: Send + Sync {
// Required methods
fn should_descend(&self, path: &Path, config: &SimpleIndexerConfig) -> bool;
fn should_index_file(
&self,
path: &Path,
config: &SimpleIndexerConfig,
) -> bool;
}Expand description
Directory traversal filter hook for SimpleIndexer.
Required Methods§
Sourcefn should_descend(&self, path: &Path, config: &SimpleIndexerConfig) -> bool
fn should_descend(&self, path: &Path, config: &SimpleIndexerConfig) -> bool
Determine if the indexer should descend into the provided directory.
Sourcefn should_index_file(&self, path: &Path, config: &SimpleIndexerConfig) -> bool
fn should_index_file(&self, path: &Path, config: &SimpleIndexerConfig) -> bool
Determine if the indexer should process the provided file.