(path: &Path)
| 74 | /// Convert a native path without normalization or replacement characters. |
| 75 | #[cfg(unix)] |
| 76 | pub fn from_native(path: &Path) -> Result<Self, ProjectTreeError> { |
| 77 | use std::os::unix::ffi::OsStrExt; |
| 78 | Self::from_bytes(path.as_os_str().as_bytes()) |
| 79 | } |
| 80 | |
| 81 | /// Windows native paths are WTF-16, so exact bytes are only available |
| 82 | /// when the path is valid Unicode. Every path this repository stores |