more docs

This commit is contained in:
Pat Hickey
2021-01-27 16:16:10 -08:00
parent cb171712cc
commit 4f2696fedf
3 changed files with 12 additions and 4 deletions

View File

@@ -134,6 +134,7 @@ unsafe fn test_path_rename(dir_fd: wasi::Fd) {
wasi::fd_close(fd).expect("closing a file");
wasi::path_unlink_file(dir_fd, "target").expect("removing a file");
// XXX windows does not support this operation
// Try renaming to an (empty) directory instead
create_file(dir_fd, "source");
wasi::path_create_directory(dir_fd, "target").expect("creating a directory");