Skip to main content
Module

std/archive/mod.ts>Tar#append

The Deno Standard Library
Latest
method Tar.prototype.append
import { Tar } from "https://deno.land/std@0.224.0/archive/mod.ts";

Append a file or reader of arbitrary content to this tar archive. Directories appended to the archive append only the directory itself to the archive, not its contents. To add a directory and its contents, recursively append the directory's contents. Directories and subdirectories will be created automatically in the archive as required.

Parameters

filenameInArchive: string

File name of the content in the archive. E.g. test.txt. Use slash for directory separators.

source: TarOptions

Details of the source of the content including the reference to the content itself and potentially any related metadata.