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

Method exists

atomic-core/src/output/traits.rs:253–255  ·  view source on GitHub ↗

Check if a path exists in the working copy. # Arguments `path` - Relative path within the working copy # Returns `true` if the path exists, `false` otherwise.

(&self, path: &str)

Source from the content-addressed store, hash-verified

251 ///
252 /// `true` if the path exists, `false` otherwise.
253 fn exists(&self, path: &str) -> bool {
254 self.file_metadata(path).is_ok()
255 }
256
257 /// Check if a path is a directory.
258 ///

Callers

nothing calls this directly

Implementers 3

traits.rsatomic-core/src/output/traits.rs
memory.rsatomic-core/src/output/memory.rs
walk.rsatomic-core/src/output/filesystem/walk

Calls 1

file_metadataMethod · 0.45

Tested by

no test coverage detected