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

Method is_directory

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

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

(&self, path: &str)

Source from the content-addressed store, hash-verified

264 ///
265 /// `true` if the path exists and is a directory, `false` otherwise.
266 fn is_directory(&self, path: &str) -> bool {
267 self.file_metadata(path).map(|m| m.is_dir).unwrap_or(false)
268 }
269
270 /// Walk the directory tree and return all file paths.
271 ///

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