Ensure destination directory exists when streaming extraction
This commit is contained in:
parent
d5bcf48469
commit
b2a4442810
6 changed files with 15 additions and 4 deletions
2
lib/tar.js
generated
2
lib/tar.js
generated
|
|
@ -153,7 +153,7 @@ async function extractTarZst(tar, dest, tarVersion, logger) {
|
|||
});
|
||||
if (tar instanceof stream.Readable) {
|
||||
tar.pipe(tarProcess.stdin).on("error", (err) => {
|
||||
reject(new Error(`Error while piping tar stream: ${err}`));
|
||||
reject(new Error(`Error while downloading and extracting tar: ${err}`));
|
||||
});
|
||||
}
|
||||
tarProcess.on("exit", (code) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue