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

Function os_str_bytes

atomic-repository/src/repository/operation.rs:5372–5375  ·  view source on GitHub ↗
(value: &OsStr)

Source from the content-addressed store, hash-verified

5370
5371#[cfg(unix)]
5372fn os_str_bytes(value: &OsStr) -> Vec<u8> {
5373 use std::os::unix::ffi::OsStrExt;
5374 value.as_bytes().to_vec()
5375}
5376
5377#[cfg(windows)]
5378fn os_str_bytes(value: &OsStr) -> Vec<u8> {

Callers 3

observe_pathFunction · 0.85
directory_content_hashFunction · 0.85
copy_entryFunction · 0.85

Calls 2

as_bytesMethod · 0.45
collectMethod · 0.45

Tested by

no test coverage detected