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

Method to_absolute

atomic-repository/src/repository/mod.rs:1444–1446  ·  view source on GitHub ↗

Convert a repository-relative path to an absolute path.

(&self, path: P)

Source from the content-addressed store, hash-verified

1442
1443 /// Convert a repository-relative path to an absolute path.
1444 pub fn to_absolute<P: AsRef<Path>>(&self, path: P) -> PathBuf {
1445 self.root.join(path)
1446 }
1447
1448 /// Check if a path is inside the .atomic directory.
1449 pub fn is_internal_path<P: AsRef<Path>>(&self, path: P) -> bool {

Callers 1

test_to_absoluteFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_to_absoluteFunction · 0.64