File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
branches/try2/src/libstd/rt Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 63182885d857fdf5641449a397ad7e3f4ebff8a7
8
+ refs/heads/try2: 25b4d8c1d7de70bab8eca8a57fdfb703e5e281c9
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -610,19 +610,15 @@ pub struct FileStat {
610
610
/// `true` if the file pointed at by the `PathInfo` is a regular file
611
611
is_file : bool ,
612
612
/// `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 ,
617
614
/// The file pointed at by the `PathInfo`'s size in bytes
618
615
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
620
617
created : u64 ,
621
618
/// The file pointed at by the `PathInfo`'s last-modification time in
622
619
/// platform-dependent msecs
623
620
modified : u64 ,
624
621
/// The file pointed at by the `PathInfo`'s last-accessd time (e.g. read) in
625
622
/// platform-dependent msecs
626
623
accessed : u64 ,
627
- */
628
624
}
Original file line number Diff line number Diff line change @@ -635,7 +635,11 @@ impl IoFactory for UvIoFactory {
635
635
Ok ( FileStat {
636
636
path : Path ( path_str) ,
637
637
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
639
643
} )
640
644
} ,
641
645
Some ( e) => {
You can’t perform that action at this time.
0 commit comments