From 0dc24dbf206acc36bded0a302dd466522ab88da3 Mon Sep 17 00:00:00 2001 From: Stefan Karpinski Date: Tue, 25 Oct 2022 12:49:05 -0400 Subject: [PATCH] extract: use open(create=true) when extracting files --- src/extract.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extract.jl b/src/extract.jl index fd41d9d..8169280 100644 --- a/src/extract.jl +++ b/src/extract.jl @@ -727,7 +727,7 @@ function read_data( buf::Vector{UInt8} = Vector{UInt8}(undef, DEFAULT_BUFFER_SIZE), tee::IO = devnull, )::Nothing - open(file, write=true) do file′ + open(file, create=true, write=true) do file′ read_data(tar, file′, size=size, buf=buf, tee=tee) end end