| ... | ... | @@ -459,6 +459,7 @@ pub const PosixOpenError = error{ |
| 459 | 459 | NoSpaceLeft, |
| 460 | 460 | NotDir, |
| 461 | 461 | PathAlreadyExists, |
| 462 | DeviceBusy, |
| 462 | 463 | |
| 463 | 464 | /// See https://github.com/ziglang/zig/issues/1396 |
| 464 | 465 | Unexpected, |
| ... | ... | @@ -497,6 +498,7 @@ pub fn posixOpenC(file_path: [*]const u8, flags: u32, perm: usize) !i32 { |
| 497 | 498 | posix.ENOTDIR => return PosixOpenError.NotDir, |
| 498 | 499 | posix.EPERM => return PosixOpenError.AccessDenied, |
| 499 | 500 | posix.EEXIST => return PosixOpenError.PathAlreadyExists, |
| 501 | posix.EBUSY => return PosixOpenError.DeviceBusy, |
| 500 | 502 | else => return unexpectedErrorPosix(err), |
| 501 | 503 | } |
| 502 | 504 | } |
| ... | ... | @@ -1402,6 +1404,7 @@ const DeleteTreeError = error{ |
| 1402 | 1404 | FileSystem, |
| 1403 | 1405 | FileBusy, |
| 1404 | 1406 | DirNotEmpty, |
| 1407 | DeviceBusy, |
| 1405 | 1408 | |
| 1406 | 1409 | /// On Windows, file paths must be valid Unicode. |
| 1407 | 1410 | InvalidUtf8, |
| ... | ... | @@ -1463,6 +1466,7 @@ pub fn deleteTree(allocator: *Allocator, full_path: []const u8) DeleteTreeError! |
| 1463 | 1466 | error.Unexpected, |
| 1464 | 1467 | error.InvalidUtf8, |
| 1465 | 1468 | error.BadPathName, |
| 1469 | error.DeviceBusy, |
| 1466 | 1470 | => return err, |
| 1467 | 1471 | }; |
| 1468 | 1472 | defer dir.close(); |
| ... | ... | @@ -1545,6 +1549,7 @@ pub const Dir = struct { |
| 1545 | 1549 | OutOfMemory, |
| 1546 | 1550 | InvalidUtf8, |
| 1547 | 1551 | BadPathName, |
| 1552 | DeviceBusy, |
| 1548 | 1553 | |
| 1549 | 1554 | /// See https://github.com/ziglang/zig/issues/1396 |
| 1550 | 1555 | Unexpected, |