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 e779593 commit a7a62e3
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 @@ -3320,7 +3320,7 @@ pub fn existsAtType(fd: bun.FileDescriptor, path: anytype) Maybe(ExistsAtType) {
}

return switch (fstatat(fd, path)) {
.err => |err| if (err.getErrno() == .NOENT) .{ .result = false } else .{ .err = err },
.err => |err| .{ .err = err },
.result => |result| if (S.ISDIR(result.mode)) .{ .result = .directory } else .{ .result = .file },
};
}
Expand Down

0 comments on commit a7a62e3

Please sign in to comment.