mirror of
https://github.com/denoland/deno.git
synced 2025-02-23 21:53:26 -05:00
Add ctime to FsStat and support of it for unix
This commit is contained in:
parent
99e811f5eb
commit
61b0818741
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,7 @@ pub struct FsStat {
|
|||
pub mtime: Option<u64>,
|
||||
pub atime: Option<u64>,
|
||||
pub birthtime: Option<u64>,
|
||||
pub ctime: Option<u64>,
|
||||
|
||||
pub dev: u64,
|
||||
pub ino: u64,
|
||||
|
@ -163,6 +164,7 @@ impl FsStat {
|
|||
mtime: to_msec(metadata.modified()),
|
||||
atime: to_msec(metadata.accessed()),
|
||||
birthtime: to_msec(metadata.created()),
|
||||
ctime: unix_or_zero!(ctime),
|
||||
|
||||
dev: unix_or_zero!(dev),
|
||||
ino: unix_or_zero!(ino),
|
||||
|
|
Loading…
Add table
Reference in a new issue