diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-01-12 17:24:16 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-02-04 13:15:28 -0800 |
| commit | d1681bbde563dff88ad8f32592e7d373f62a038d (patch) | |
| tree | d469ea15d1a724ff7295c7e5917ca3f154206e34 /src/libstd/sys/windows/ext | |
| parent | d0ef74026690cffccb543fc274d73a078eba797d (diff) | |
| download | rust-d1681bbde563dff88ad8f32592e7d373f62a038d.tar.gz rust-d1681bbde563dff88ad8f32592e7d373f62a038d.zip | |
std: Expose SystemTime accessors on fs::Metadata
These accessors are used to get at the last modification, last access, and creation time of the underlying file. Currently not all platforms provide the creation time, so that currently returns `Option`.
Diffstat (limited to 'src/libstd/sys/windows/ext')
| -rw-r--r-- | src/libstd/sys/windows/ext/fs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/windows/ext/fs.rs b/src/libstd/sys/windows/ext/fs.rs index d060c902fba..d378a6853f3 100644 --- a/src/libstd/sys/windows/ext/fs.rs +++ b/src/libstd/sys/windows/ext/fs.rs @@ -196,9 +196,9 @@ pub trait MetadataExt { #[stable(feature = "metadata_ext", since = "1.1.0")] impl MetadataExt for Metadata { fn file_attributes(&self) -> u32 { self.as_inner().attrs() } - fn creation_time(&self) -> u64 { self.as_inner().created() } - fn last_access_time(&self) -> u64 { self.as_inner().accessed() } - fn last_write_time(&self) -> u64 { self.as_inner().modified() } + fn creation_time(&self) -> u64 { self.as_inner().created_u64() } + fn last_access_time(&self) -> u64 { self.as_inner().accessed_u64() } + fn last_write_time(&self) -> u64 { self.as_inner().modified_u64() } fn file_size(&self) -> u64 { self.as_inner().size() } } |
