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

Method all_paths

atomic-agent/src/event.rs:531–537  ·  view source on GitHub ↗

Returns all affected file paths in a single iterator. Order: modified files first, then added, then deleted. This is the list passed to `RecordOptions::paths` when recording the turn as an Atomic change.

(&self)

Source from the content-addressed store, hash-verified

529 /// This is the list passed to `RecordOptions::paths` when recording
530 /// the turn as an Atomic change.
531 pub fn all_paths(&self) -> Vec<PathBuf> {
532 let mut paths = Vec::with_capacity(self.file_count());
533 paths.extend(self.modified.iter().cloned());
534 paths.extend(self.added.iter().cloned());
535 paths.extend(self.deleted.iter().cloned());
536 paths
537 }
538
539 /// Returns all affected paths as string slices.
540 ///

Callers 2

all_path_stringsMethod · 0.80

Calls 3

extendMethod · 0.80
file_countMethod · 0.45
iterMethod · 0.45

Tested by 1