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

Method to_native

atomic-repository/src/repository/project_tree.rs:96–99  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

94
95 #[cfg(unix)]
96 pub fn to_native(&self) -> Result<PathBuf, ProjectTreeError> {
97 use std::os::unix::ffi::OsStringExt;
98 Ok(PathBuf::from(std::ffi::OsString::from_vec(self.0.clone())))
99 }
100
101 /// Inverse of [`Self::from_native`]: exact for the UTF-8 byte strings
102 /// this repository stores; non-UTF-8 bytes are refused on windows.

Callers 8

status_innerMethod · 0.80
tracked_worktree_pathFunction · 0.80
observe_candidateFunction · 0.80
read_canonical_contentFunction · 0.80
observationMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected