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

Method all_path_strings

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

Returns all affected paths as string slices. Paths that are not valid UTF-8 are skipped. This is the format needed by `RecordOptions::paths` which takes `Vec `.

(&self)

Source from the content-addressed store, hash-verified

932 /// Paths that are not valid UTF-8 are skipped. This is the format
933 /// needed by `RecordOptions::paths` which takes `Vec<String>`.
934 pub fn all_path_strings(&self) -> Vec<String> {
935 self.all_paths()
936 .iter()
937 .filter_map(|p| p.to_str().map(|s| s.to_string()))
938 .collect()
939 }
940
941 /// Merge another `TurnChanges` into this one.
942 ///

Callers 1

Calls 3

all_pathsMethod · 0.80
collectMethod · 0.45
iterMethod · 0.45

Tested by 1