Skip to main content

io_to_file_code

Function io_to_file_code 

Source
pub fn io_to_file_code(err: &Error) -> FileErrorCode
Expand description

Classify an io::Error (from tokio::fs / std) into a FileError code. Mirrors the mapping the TS Node.js env applies when it catches io::Error.