(path: impl Into<std::ffi::OsString>)
| 211 | |
| 212 | impl OsPath { |
| 213 | pub fn new_str(path: impl Into<std::ffi::OsString>) -> Self { |
| 214 | let path = path.into(); |
| 215 | Self { path, origin: None } |
| 216 | } |
| 217 | |
| 218 | pub(crate) fn from_fspath(fspath: FsPath, vm: &VirtualMachine) -> PyResult<Self> { |
| 219 | let path = fspath.as_os_str(vm)?.into_owned(); |
no outgoing calls
no test coverage detected