File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
library/std/src/sys/wasi/ext Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -397,6 +397,8 @@ pub trait MetadataExt {
397
397
fn ino ( & self ) -> u64 ;
398
398
/// Returns the `st_nlink` field of the internal `filestat_t`
399
399
fn nlink ( & self ) -> u64 ;
400
+ /// Returns the `st_size` field of the internal `filestat_t`
401
+ fn size ( & self ) -> u64 ;
400
402
/// Returns the `st_atim` field of the internal `filestat_t`
401
403
fn atim ( & self ) -> u64 ;
402
404
/// Returns the `st_mtim` field of the internal `filestat_t`
@@ -415,6 +417,9 @@ impl MetadataExt for fs::Metadata {
415
417
fn nlink ( & self ) -> u64 {
416
418
self . as_inner ( ) . as_wasi ( ) . nlink
417
419
}
420
+ fn size ( & self ) -> u64 {
421
+ self . as_inner ( ) . as_wasi ( ) . size
422
+ }
418
423
fn atim ( & self ) -> u64 {
419
424
self . as_inner ( ) . as_wasi ( ) . atim
420
425
}
You can’t perform that action at this time.
0 commit comments