Skip to content

Commit

Permalink
Update sys.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Feb 6, 2025
1 parent 12ddd15 commit e779593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3162,7 +3162,7 @@ pub fn faccessat(dir_: anytype, subpath: anytype) JSC.Maybe(bool) {
pub fn directoryExistsAt(dir: anytype, subpath: anytype) JSC.Maybe(bool) {
const dir_fd = bun.toFD(dir);
return switch (existsAtType(dir_fd, subpath)) {
.err => |err| .{ .err = if (err.getErrno() == .NOENT) .{ .errno = @intFromEnum(bun.C.E.UNKNOWN), .syscall = .access } else err },
.err => |err| if (err.getErrno() == .NOENT) .{ .result = false } else .{ .err = err },
.result => |result| .{ .result = result == .directory },
};
}
Expand Down

0 comments on commit e779593

Please sign in to comment.