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

Function os_path_bytes

atomic-repository/src/repository/working_copy.rs:549–552  ·  view source on GitHub ↗
(path: &std::ffi::OsStr)

Source from the content-addressed store, hash-verified

547
548#[cfg(unix)]
549fn os_path_bytes(path: &std::ffi::OsStr) -> Vec<u8> {
550 use std::os::unix::ffi::OsStrExt;
551 path.as_bytes().to_vec()
552}
553
554#[cfg(windows)]
555fn os_path_bytes(path: &std::ffi::OsStr) -> Vec<u8> {

Callers 1

push_pathFunction · 0.85

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected