pub const PathNameError = error
pub const PathNameError = error{
/// Returned when an insufficient buffer is provided that cannot fit the
/// path name.
NameTooLong,
/// File system cannot encode the requested file name bytes.
/// Could be due to invalid WTF-8 on Windows, invalid UTF-8 on WASI,
/// invalid characters on Windows, etc. Filesystem and operating specific.
BadPathName,
}