diff options
author | 2022-11-14 04:41:16 +0100 | |
---|---|---|
committer | 2022-11-14 04:41:16 +0100 | |
commit | 98df9d7703708cc7351563b9500d6a337003c3eb (patch) | |
tree | b05783a385d48f086c3efa765e36d895d067f885 /src/libarchive/libarchive.zig | |
parent | ab5253c030c0ea4b6eff61132d8876c7027acd12 (diff) | |
download | bun-98df9d7703708cc7351563b9500d6a337003c3eb.tar.gz bun-98df9d7703708cc7351563b9500d6a337003c3eb.tar.zst bun-98df9d7703708cc7351563b9500d6a337003c3eb.zip |
Fix: IterableDir stuff
Diffstat (limited to 'src/libarchive/libarchive.zig')
-rw-r--r-- | src/libarchive/libarchive.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libarchive/libarchive.zig b/src/libarchive/libarchive.zig index ff015294e..8493f3fab 100644 --- a/src/libarchive/libarchive.zig +++ b/src/libarchive/libarchive.zig @@ -470,7 +470,7 @@ pub const Archive = struct { pub fn extractToDir( file_buffer: []const u8, - dir: std.fs.Dir, + iter_dir: std.fs.IterableDir, ctx: ?*Archive.Context, comptime FilePathAppender: type, appender: FilePathAppender, @@ -478,6 +478,7 @@ pub const Archive = struct { comptime close_handles: bool, comptime log: bool, ) !u32 { + const dir = iter_dir.dir; var entry: *lib.archive_entry = undefined; var stream: BufferReadStream = undefined; |