File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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) => {
You can’t perform that action at this time.
0 commit comments