Commit fe6fd0d541
2022-12-22 09:46:55
1 parent
433709aChanged files (1)
lib
std
lib/std/fs.zig
@@ -1822,6 +1822,9 @@ pub const Dir = struct {
.OBJECT_NAME_NOT_FOUND => return error.FileNotFound,
.OBJECT_PATH_NOT_FOUND => return error.FileNotFound,
.NOT_A_DIRECTORY => return error.NotDir,
+ // This can happen if the directory has 'List folder contents' permission set to 'Deny'
+ // and the directory is trying to be opened for iteration.
+ .ACCESS_DENIED => return error.AccessDenied,
.INVALID_PARAMETER => unreachable,
else => return w.unexpectedStatus(rc),
}