(
vm: &VirtualMachine,
error: std::io::Error,
path: OsPath,
)
| 2042 | |
| 2043 | #[cold] |
| 2044 | fn error( |
| 2045 | vm: &VirtualMachine, |
| 2046 | error: std::io::Error, |
| 2047 | path: OsPath, |
| 2048 | ) -> crate::builtins::PyBaseExceptionRef { |
| 2049 | OSErrorBuilder::with_filename(&error, path, vm) |
| 2050 | } |
| 2051 | |
| 2052 | let path = OsPath::try_from_object(vm, path)?; |
| 2053 | // TODO: just call libc::truncate() on POSIX |
no outgoing calls
no test coverage detected