PATH_FILESTAT_GET
WASI Preview1 function path_filestat_get
Definition:
;;; Return the attributes of a file or directory.
;;; Note: This is similar to `stat` in POSIX.
(@interface func (export "path_filestat_get")
(param $fd $fd)
;;; Flags determining the method of how the path is resolved.
(param $flags $lookupflags)
;;; The path of the file or directory to inspect.
(param $path string)
;;; The buffer where the file's attributes are stored.
(result $error (expected $filestat (error $errno)))
)
Content copied to clipboard