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

Function path_from_bytes

atomic-repository/src/repository/working_copy.rs:475–478  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

473
474#[cfg(unix)]
475fn path_from_bytes(bytes: &[u8]) -> Result<PathBuf, RepositoryError> {
476 use std::os::unix::ffi::OsStringExt;
477 Ok(PathBuf::from(OsString::from_vec(bytes.to_vec())))
478}
479
480#[cfg(not(unix))]
481fn path_from_bytes(bytes: &[u8]) -> Result<PathBuf, RepositoryError> {

Callers 1

resolve_git_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected