alnyan/yggdrasil: change file times abi
This commit is contained in:
parent
a559ccdbd8
commit
aaef17c77f
@ -62,17 +62,17 @@ impl FileAttr {
|
||||
}
|
||||
|
||||
pub fn modified(&self) -> io::Result<SystemTime> {
|
||||
let time = SystemTime(RtSystemTime::from_seconds(self.0.mtime));
|
||||
let time = SystemTime(self.0.mtime);
|
||||
Ok(time)
|
||||
}
|
||||
|
||||
pub fn accessed(&self) -> io::Result<SystemTime> {
|
||||
let time = SystemTime(RtSystemTime::from_seconds(self.0.atime));
|
||||
let time = SystemTime(self.0.atime);
|
||||
Ok(time)
|
||||
}
|
||||
|
||||
pub fn created(&self) -> io::Result<SystemTime> {
|
||||
let time = SystemTime(RtSystemTime::from_seconds(self.0.ctime));
|
||||
let time = SystemTime(self.0.ctime);
|
||||
Ok(time)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user