handle unavailable creation time as io::ErrorKind::Unsupported
This commit is contained in:
parent
b6e4299415
commit
7e10a5c724
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
))
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue