Skip to content

Commit d619696

Browse files
committed
---
yaml --- r: 80447 b: refs/heads/snap-stage3 c: 25b4d8c h: refs/heads/master i: 80445: 0983d32 80443: 29c8486 80439: 1d19095 80431: e58e8a5 80415: a714585 80383: 52863ff v: v3
1 parent 996b3ee commit d619696

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 3e1803f3af1adc1b2e5595650f6920f40bbedc2e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 63182885d857fdf5641449a397ad7e3f4ebff8a7
4+
refs/heads/snap-stage3: 25b4d8c1d7de70bab8eca8a57fdfb703e5e281c9
55
refs/heads/try: 71bebebc37fbb229877da88dde13c2f35913bd77
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/rt/io/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -610,19 +610,15 @@ pub struct FileStat {
610610
/// `true` if the file pointed at by the `PathInfo` is a regular file
611611
is_file: bool,
612612
/// `true` if the file pointed at by the `PathInfo` is a directory
613-
is_dir: bool
614-
// `true` if the file pointed at by the `PathInfo` is a link (what this means
615-
// is platform dependant)
616-
/*
613+
is_dir: bool,
617614
/// The file pointed at by the `PathInfo`'s size in bytes
618615
size: u64,
619-
/// The file pointed at by the `PathInfo`'s time date in platform-dependent msecs
616+
/// The file pointed at by the `PathInfo`'s creation time
620617
created: u64,
621618
/// The file pointed at by the `PathInfo`'s last-modification time in
622619
/// platform-dependent msecs
623620
modified: u64,
624621
/// The file pointed at by the `PathInfo`'s last-accessd time (e.g. read) in
625622
/// platform-dependent msecs
626623
accessed: u64,
627-
*/
628624
}

branches/snap-stage3/src/libstd/rt/uv/uvio.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,11 @@ impl IoFactory for UvIoFactory {
635635
Ok(FileStat {
636636
path: Path(path_str),
637637
is_file: stat.is_file(),
638-
is_dir: stat.is_dir()
638+
is_dir: stat.is_dir(),
639+
size: stat.st_size,
640+
created: stat.st_ctim.tv_sec as u64,
641+
modified: stat.st_mtim.tv_sec as u64,
642+
accessed: stat.st_atim.tv_sec as u64
639643
})
640644
},
641645
Some(e) => {

0 commit comments

Comments
 (0)