1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::io;
#[cfg(not(windows))]
pub(crate) use crate::rustix::fs::errors::*;
#[cfg(windows)]
pub(crate) use crate::windows::fs::errors::*;
#[cold]
pub(crate) fn escape_attempt() -> io::Error {
io::Error::new(
io::ErrorKind::PermissionDenied,
"a path led outside of the filesystem",
)
}