(&self)
| 94 | |
| 95 | #[cfg(unix)] |
| 96 | pub fn to_native(&self) -> Result<PathBuf, ProjectTreeError> { |
| 97 | use std::os::unix::ffi::OsStringExt; |
| 98 | Ok(PathBuf::from(std::ffi::OsString::from_vec(self.0.clone()))) |
| 99 | } |
| 100 | |
| 101 | /// Inverse of [`Self::from_native`]: exact for the UTF-8 byte strings |
| 102 | /// this repository stores; non-UTF-8 bytes are refused on windows. |
no test coverage detected