Skip to main content

io_error_msg

Function io_error_msg 

Source
pub fn io_error_msg(e: &Error) -> String
Expand description

Format an IO error message without the “(os error N)” suffix. GNU coreutils prints e.g. “No such file or directory” while Rust’s Display impl adds “ (os error 2)“. This strips the suffix for compat.