| ... | ... | @@ -1734,7 +1734,7 @@ pub fn unlinkatW(dirfd: fd_t, sub_path_w: [*:0]const u16, flags: u32) UnlinkatEr |
| 1734 | 1734 | |
| 1735 | 1735 | const want_rmdir_behavior = (flags & AT_REMOVEDIR) != 0; |
| 1736 | 1736 | const create_options_flags = if (want_rmdir_behavior) |
| 1737 | | @as(w.ULONG, w.FILE_DELETE_ON_CLOSE) |
| 1737 | @as(w.ULONG, w.FILE_DELETE_ON_CLOSE | w.FILE_DIRECTORY_FILE) |
| 1738 | 1738 | else |
| 1739 | 1739 | @as(w.ULONG, w.FILE_DELETE_ON_CLOSE | w.FILE_NON_DIRECTORY_FILE); |
| 1740 | 1740 | |
| ... | ... | @@ -1787,6 +1787,7 @@ pub fn unlinkatW(dirfd: fd_t, sub_path_w: [*:0]const u16, flags: u32) UnlinkatEr |
| 1787 | 1787 | .OBJECT_NAME_NOT_FOUND => return error.FileNotFound, |
| 1788 | 1788 | .INVALID_PARAMETER => unreachable, |
| 1789 | 1789 | .FILE_IS_A_DIRECTORY => return error.IsDir, |
| 1790 | .NOT_A_DIRECTORY => return error.NotDir, |
| 1790 | 1791 | else => return w.unexpectedStatus(rc), |
| 1791 | 1792 | } |
| 1792 | 1793 | } |