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

Method all_paths

atomic-agent/src/event.rs:539–545  ·  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

537 /// This is the list passed to `RecordOptions::paths` when recording
538 /// the turn as an Atomic change.
539 pub fn all_paths(&self) -> Vec<PathBuf> {
540 let mut paths = Vec::with_capacity(self.file_count());
541 paths.extend(self.modified.iter().cloned());
542 paths.extend(self.added.iter().cloned());
543 paths.extend(self.deleted.iter().cloned());
544 paths
545 }
546
547 /// Returns all affected paths as string slices.
548 ///

Callers 2

all_path_stringsMethod · 0.80

Calls 3

extendMethod · 0.80
file_countMethod · 0.45
iterMethod · 0.45

Tested by 1