We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let { UntarStream } = await import('jsr:@std/tar/untar-stream') let { dirname, normalize } = await import('jsr:@std/path') let { ensureDir } = await import('jsr:@std/fs') let url = 'https://bitcoincore.org/bin/bitcoin-core-28.0/bitcoin-28.0-x86_64-linux-gnu.tar.gz' for await (let entry of (await fetch(url)).body?.pipeThrough(new DecompressionStream('gzip')).pipeThrough(new UntarStream())) { let path = normalize(entry.path) await Deno.mkdir(dirname(path)) // Bug Here // await ensureDir(dirname(path)) // Solution Here await entry.readable?.pipeTo((await Deno.create(path)).writable) }
Reference: https://jsr.io/@std/tar
Environment: Ubuntu 24.10 Deno 2.0.0
The text was updated successfully, but these errors were encountered:
#6113
I'm a little ahead of you. Changing it to await Deno.mkdir(dirname(path), { recursive: true }) fixes your problem.
await Deno.mkdir(dirname(path), { recursive: true })
Sorry, something went wrong.
No branches or pull requests
Reference:
https://jsr.io/@std/tar
Environment:
Ubuntu 24.10
Deno 2.0.0
The text was updated successfully, but these errors were encountered: