mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 00:57:04 +00:00
Fix fs.File.mode() not returning mode_t on windows
This commit is contained in:
parent
b30642a86a
commit
8b49487c33
@ -209,7 +209,7 @@ pub const File = struct {
|
||||
/// TODO: integrate with async I/O
|
||||
pub fn mode(self: File) ModeError!Mode {
|
||||
if (builtin.os.tag == .windows) {
|
||||
return {};
|
||||
return 0;
|
||||
}
|
||||
return (try self.stat()).mode;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user