diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2022-01-03 03:51:37 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-04 02:15:29 -0500 |
| commit | 3c87d4e14ec6b0c2442372cbcc60174d654edddc (patch) | |
| tree | 12d18222b2ac1f47ba452d62424a5d60b3821596 | |
| parent | 5b0be0d436407bbb7a9c6445b6bc58347add301e (diff) | |
| download | zig-3c87d4e14ec6b0c2442372cbcc60174d654edddc.tar.gz zig-3c87d4e14ec6b0c2442372cbcc60174d654edddc.zip | |
Add CANNOT_DELETE as a possible error in os.windows.DeleteFile
Can happen when e.g. trying to delete a file with the Read Only flag set
| -rw-r--r-- | lib/std/os/windows.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index 0d9907893c..7642fa80f8 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -913,6 +913,7 @@ pub fn DeleteFile(sub_path_w: []const u16, options: DeleteFileOptions) DeleteFil .FILE_IS_A_DIRECTORY => return error.IsDir, .NOT_A_DIRECTORY => return error.NotDir, .SHARING_VIOLATION => return error.FileBusy, + .CANNOT_DELETE => return error.AccessDenied, else => return unexpectedStatus(rc), } } |
