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

Function collect_files_for_tracking

atomic-repository/src/tracking/helpers.rs:177–183  ·  view source on GitHub ↗

Collect all files in a directory for tracking. This walks the directory tree and returns paths relative to the given root. Files matching `.atomicignore` patterns are excluded. # Arguments `root` - Repository root directory `path` - Path to collect files from (relative to root) `options` - Tracking options # Returns A vector of paths relative to the repository root.

(
    root: &Path,
    path: &Path,
    options: &TrackingOptions,
)

Source from the content-addressed store, hash-verified

175///
176/// A vector of paths relative to the repository root.
177pub fn collect_files_for_tracking(
178 root: &Path,
179 path: &Path,
180 options: &TrackingOptions,
181) -> TrackingResult<Vec<PathBuf>> {
182 collect_files_for_tracking_with_rules(root, path, options, None)
183}
184
185/// Collect all files in a directory for tracking, with optional ignore rules.
186///