PATH_REMOVE_DIRECTORY
WASI Preview1 function path_remove_directory
Definition:
;;; Remove a directory.
;;; Return `errno::notempty` if the directory is not empty.
;;; Note: This is similar to `unlinkat(fd, path, AT_REMOVEDIR)` in POSIX.
(@interface func (export "path_remove_directory")
(param $fd $fd)
;;; The path to a directory to remove.
(param $path string)
(result $error (expected (error $errno)))
)
Content copied to clipboard