TraversalFilter

Trait TraversalFilter 

Source
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§

Source

fn should_descend(&self, path: &Path, config: &SimpleIndexerConfig) -> bool

Determine if the indexer should descend into the provided directory.

Source

fn should_index_file(&self, path: &Path, config: &SimpleIndexerConfig) -> bool

Determine if the indexer should process the provided file.

Implementors§