MCPcopy Create free account
hub / github.com/dallay/agentsync / revalidate_path

Method revalidate_path

src/linker.rs:208–211  ·  view source on GitHub ↗

Re-validate a previously joined path immediately before filesystem mutation.

(&self, dest: &Path)

Source from the content-addressed store, hash-verified

206
207 /// Re-validate a previously joined path immediately before filesystem mutation.
208 fn revalidate_path(&self, dest: &Path) -> Result<()> {
209 self.ensure_safe_path(dest, &dest.display().to_string())
210 .map(|_| ())
211 }
212
213 /// Re-validate a path before unlinking (remove_file/remove_dir).
214 /// Unlike revalidate_path, this does NOT canonicalize the final component,

Callers 7

process_targetMethod · 0.80
ensure_directoryMethod · 0.80
create_symlinkMethod · 0.80
process_module_mapMethod · 0.80
cleanMethod · 0.80

Calls 1

ensure_safe_pathMethod · 0.80

Tested by

no test coverage detected