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

Method add_files_touched

atomic-agent/src/turn/session.rs:467–473  ·  view source on GitHub ↗

Add files to the accumulated files_touched list (deduplicating).

(&mut self, files: &[String])

Source from the content-addressed store, hash-verified

465
466 /// Add files to the accumulated files_touched list (deduplicating).
467 pub fn add_files_touched(&mut self, files: &[String]) {
468 for file in files {
469 if !self.files_touched.contains(file) {
470 self.files_touched.push(file.clone());
471 }
472 }
473 }
474
475 /// Returns the number of unique files touched across the session.
476 pub fn files_touched_count(&self) -> u32 {

Calls 3

containsMethod · 0.45
pushMethod · 0.45
cloneMethod · 0.45