wingo opened issue #12178:
To repro:
dir.symlink_at(".".to_string(), "dot".to_string()).await.unwrap(); assert_eq!( dir.remove_directory_at("dot".to_string()).await, Err(ErrorCode::NotDirectory) );Expected result: fails with
NotDirectoryOn windows, it succeeds: https://github.com/WebAssembly/wasi-testsuite/pull/198/files#r2630813076
wingo added the bug label to Issue #12178.
fitzgen added the wasi:tests label to Issue #12178.
fitzgen added the wasi:impl label to Issue #12178.
fitzgen added the wasi label to Issue #12178.
alexcrichton commented on issue #12178:
Personally I'd say this is a case where the "spec" for
wasi:filesystemshould be updated to allow for this case. Windows symlinks are pretty different compared to Unix in subtle ways but there's only so much we can do. I don't think it'd be great if we were forced to, for example, test the file's existence inremove-directory-atfirst before actually trying to remove it.
wingo commented on issue #12178:
I keep learning horrible things!!! Agreed that there is no viable workaround. Goddammit.
Last updated: Jan 09 2026 at 13:15 UTC