MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / walk_scan

Function walk_scan

atomic-repository/src/repository/adoption.rs:3681–3694  ·  view source on GitHub ↗
(
        root: &Path,
        dir: &Path,
        known: &BTreeSet<String>,
        known_gitlinks: &BTreeSet<String>,
        inject: Option<&OsStr>,
    )

Source from the content-addressed store, hash-verified

3679 use std::path::Path;
3680
3681 fn walk_scan(
3682 root: &Path,
3683 dir: &Path,
3684 known: &BTreeSet<String>,
3685 known_gitlinks: &BTreeSet<String>,
3686 inject: Option<&OsStr>,
3687 ) -> Result<Vec<String>, RepositoryError> {
3688 let rules = crate::ignore::IgnoreRules::load(root);
3689 let mut out = Vec::new();
3690 walk_unexplained_worktree(root, dir, &rules, known, known_gitlinks, inject, &mut out)?;
3691 out.sort();
3692 out.dedup();
3693 Ok(out)
3694 }
3695
3696 #[test]
3697 fn unexplained_walk_propagates_enumeration_failure_instead_of_partial_scan() {

Calls 2

sortMethod · 0.80