pub fn is_read_only_filesystem(err: &Error) -> boolExpand description
Returns true when an io::Error indicates the underlying filesystem
is mounted read-only (EROFS on Unix). The portable
ErrorKind::ReadOnlyFilesystem is preferred when present; we also
match the raw OS code because some platforms (notably older macOS
surfaces and certain remote filesystems) do not always translate.