(path: P)
| 131 | |
| 132 | #[cfg(unix)] |
| 133 | fn path_to_bytes<P: AsRef<Path>>(path: P) -> Vec<u8> { |
| 134 | use std::os::unix::ffi::OsStrExt; |
| 135 | path.as_ref().as_os_str().as_bytes().to_vec() |
| 136 | } |
| 137 | |
| 138 | #[cfg(not(unix))] |
| 139 | fn path_to_bytes<P: AsRef<Path>>(path: P) -> Vec<u8> { |