mirror of
https://github.com/denoland/std.git
synced 2024-11-21 12:40:03 +00:00
docs(tar): fix example in creating directories (#6113)
This commit is contained in:
parent
d85d0d8032
commit
825f31160f
@ -16,7 +16,7 @@
|
||||
* .pipeThrough(new UntarStream())
|
||||
* ) {
|
||||
* const path = normalize(entry.path);
|
||||
* await Deno.mkdir(dirname(path));
|
||||
* await Deno.mkdir(dirname(path), { recursive: true });
|
||||
* await entry.readable?.pipeTo((await Deno.create(path)).writable);
|
||||
* }
|
||||
* ```
|
||||
|
@ -167,7 +167,7 @@ export interface TarStreamEntry {
|
||||
* .pipeThrough(new UntarStream())
|
||||
* ) {
|
||||
* const path = normalize(entry.path);
|
||||
* await Deno.mkdir(dirname(path));
|
||||
* await Deno.mkdir(dirname(path), { recursive: true });
|
||||
* await entry.readable?.pipeTo((await Deno.create(path)).writable);
|
||||
* }
|
||||
* ```
|
||||
@ -359,7 +359,7 @@ export class UntarStream
|
||||
* .pipeThrough(new UntarStream())
|
||||
* ) {
|
||||
* const path = normalize(entry.path);
|
||||
* await Deno.mkdir(dirname(path));
|
||||
* await Deno.mkdir(dirname(path), { recursive: true });
|
||||
* await entry.readable?.pipeTo((await Deno.create(path)).writable);
|
||||
* }
|
||||
* ```
|
||||
|
Loading…
Reference in New Issue
Block a user