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

Method from_root

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

Create a new `FileSystem` rooted at the given path. The path does not need to exist yet, but operations will fail if the root directory is not present when needed.

(root: P)

Source from the content-addressed store, hash-verified

50 /// The path does not need to exist yet, but operations will fail
51 /// if the root directory is not present when needed.
52 pub fn from_root<P: AsRef<Path>>(root: P) -> Self {
53 Self {
54 root: root.as_ref().to_path_buf(),
55 }
56 }
57
58 /// Get the root directory path.
59 pub fn root(&self) -> &Path {

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected