-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Windows: std.fs.Dir.deleteDir() will silently fail on non-empty directories #5537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From https://go.microsoft.com/fwlink/?LinkId=140636 section 4.3.1 (page 33):
Seems like EDIT:
|
Should be fixed with #6397 so closing. If the issue persists, please feel free to reopen! |
Re-adds the test that was added and then reverted in ziglang#6397, but with the test for ziglang#5537 skipped for now since that issue is no longer fixed.
When
./dir
is non-empty, the following code will succeed but the directory will not be deleted. I expecterror.DirNotEmpty
to be returned in this case.Both NtCreateFile and NtClose seem to be returning
SUCCESS
here:zig/lib/std/os.zig
Lines 1768 to 1791 in fd067fb
The text was updated successfully, but these errors were encountered: