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

Method exists

atomic-core/src/output/filesystem/mod.rs:92–96  ·  view source on GitHub ↗

Check if a path exists.

(&self, path: &str)

Source from the content-addressed store, hash-verified

90
91 /// Check if a path exists.
92 pub fn exists(&self, path: &str) -> bool {
93 self.resolve_path(path)
94 .map(|path| fs::symlink_metadata(path).is_ok())
95 .unwrap_or(false)
96 }
97
98 /// Replace a path with a symbolic link, preserving dangling targets.
99 #[cfg(unix)]

Callers 15

watch_repositoryFunction · 0.45
runMethod · 0.45
delete_fileMethod · 0.45
runMethod · 0.45
add_pathMethod · 0.45
runMethod · 0.45
finish_service_addFunction · 0.45
print_ignore_debugMethod · 0.45
forensic_manifest_rootFunction · 0.45
colocated_git_repositoryFunction · 0.45
runMethod · 0.45

Calls 1

resolve_pathMethod · 0.45