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

Method exists

atomic-core/src/output/filesystem/walk.rs:132–136  ·  view source on GitHub ↗

Check if a path exists.

(&self, path: &str)

Source from the content-addressed store, hash-verified

130
131 /// Check if a path exists.
132 fn exists(&self, path: &str) -> bool {
133 self.resolve_path(path)
134 .map(|path| fs::symlink_metadata(path).is_ok())
135 .unwrap_or(false)
136 }
137
138 /// Check if a path is a directory.
139 fn is_directory(&self, path: &str) -> bool {

Callers

nothing calls this directly

Calls 1

resolve_pathMethod · 0.45

Tested by

no test coverage detected