| author | |
| committer | |
| log | 81214278ca14b832e53876feb70fa3c072c14dd6 |
| tree | 6ac93a26add93fc1b362e2a0f5bdddf3c9be0c35 |
| parent | 89bda60d28de5a44f445eaf056db45735176c1e3 |
2 files changed, 5 insertions(+), 5 deletions(-)
lib/std/Io/Threaded.zig+2-3| ... | ... | @@ -1650,9 +1650,8 @@ fn dirMakeOpenPathWasi( |
| 1650 | 1650 | |
| 1651 | 1651 | fn dirStat(userdata: ?*anyopaque, dir: Io.Dir) Io.Dir.StatError!Io.Dir.Stat { |
| 1652 | 1652 | const t: *Threaded = @ptrCast(@alignCast(userdata)); |
| 1653 | _ = t; | |
| 1654 | _ = dir; | |
| 1655 | @panic("TODO implement dirStat"); | |
| 1653 | const file: Io.File = .{ .handle = dir.handle }; | |
| 1654 | return fileStat(t, file); | |
| 1656 | 1655 | } |
| 1657 | 1656 | |
| 1658 | 1657 | const dirStatPath = switch (native_os) { |
lib/std/fs/Dir.zig+3-2| ... | ... | @@ -2008,8 +2008,9 @@ pub const StatError = File.StatError; |
| 2008 | 2008 | |
| 2009 | 2009 | /// Deprecated in favor of `Io.Dir.stat`. |
| 2010 | 2010 | pub fn stat(self: Dir) StatError!Stat { |
| 2011 | const file: File = .{ .handle = self.fd }; | |
| 2012 | return file.stat(); | |
| 2011 | var threaded: Io.Threaded = .init_single_threaded; | |
| 2012 | const io = threaded.ioBasic(); | |
| 2013 | return Io.Dir.stat(.{ .handle = self.fd }, io); | |
| 2013 | 2014 | } |
| 2014 | 2015 | |
| 2015 | 2016 | pub const StatFileError = File.OpenError || File.StatError || posix.FStatAtError; |