handle unavailable creation time as io::ErrorKind::Unsupported

This commit is contained in:
Jan Starke 2024-02-27 17:45:20 +01:00 committed by GitHub
parent b6e4299415
commit 7e10a5c724
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -576,7 +576,7 @@ impl FileAttr {
Ok(SystemTime::new(ext.stx_btime.tv_sec, ext.stx_btime.tv_nsec as i64))
} else {
Err(io::const_io_error!(
io::ErrorKind::Uncategorized,
io::ErrorKind::Unsupported,
"creation time is not available for the filesystem",
))
};