Skip to main content

discover_repository_files

Function discover_repository_files 

Source
pub fn discover_repository_files(
    root: &Path,
    policy: &IgnorePolicy,
    max_depth: Option<usize>,
) -> Result<Vec<PathBuf>, RepositoryDiscoveryError>
Expand description

Discovers regular, non-symlink files under one repository with the complete native policy.

max_depth uses walker depth, where the configured repository root is depth zero.

ยงErrors

Returns RepositoryDiscoveryError for directory or enabled ignore-file failures.