Ensure destination directory exists when streaming extraction

This commit is contained in:
Henry Mercer 2024-12-03 15:42:51 +00:00
parent d5bcf48469
commit b2a4442810
6 changed files with 15 additions and 4 deletions

2
lib/tar.js generated
View file

@ -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) => {