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

Function snapshot_path

atomic-cli/tests/it/git_guard_cb0c_test.rs:240–246  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

238}
239
240fn snapshot_path(path: &Path) -> BTreeMap<String, Vec<u8>> {
241 let mut snapshot = BTreeMap::new();
242 if path.exists() {
243 collect_snapshot(path, path, &mut snapshot);
244 }
245 snapshot
246}
247
248fn collect_snapshot(base: &Path, path: &Path, snapshot: &mut BTreeMap<String, Vec<u8>>) {
249 let metadata = fs::symlink_metadata(path)

Callers 2

captureMethod · 0.70
stash_pushMethod · 0.50

Calls 2

collect_snapshotFunction · 0.70
existsMethod · 0.45

Tested by

no test coverage detected