(path: &std::ffi::OsStr)
| 547 | |
| 548 | #[cfg(unix)] |
| 549 | fn 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)] |
| 555 | fn os_path_bytes(path: &std::ffi::OsStr) -> Vec<u8> { |