wasiFunction path_filestat_get
Source pub unsafe fn path_filestat_get(
fd: Fd,
flags: Lookupflags,
path: &str,
) -> Result<Filestat, Errno>
Expand description
Return the attributes of a file or directory.
Note: This is similar to stat
in POSIX.
§Parameters
flags
- Flags determining the method of how the path is resolved.
path
- The path of the file or directory to inspect.
§Return
The buffer where the file’s attributes are stored.