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

Function collect_working_copy_files

atomic-repository/src/status.rs:1007–1012  ·  view source on GitHub ↗

Collect all files in a directory, respecting ignore patterns. # Arguments `root` - The root directory to walk `options` - Status options controlling which files to include # Returns A set of paths relative to the root directory.

(
    root: &Path,
    options: &StatusOptions,
)

Source from the content-addressed store, hash-verified

1005///
1006/// A set of paths relative to the root directory.
1007pub fn collect_working_copy_files(
1008 root: &Path,
1009 options: &StatusOptions,
1010) -> StatusResult<HashSet<PathBuf>> {
1011 collect_working_copy_files_with_rules(root, options, None)
1012}
1013
1014/// Collect all files in a directory, respecting ignore patterns and custom rules.
1015///