UNPKG

tar

Version:
19 lines • 949 B
import { type WithAliases } from './dealias.js'; import type { DeleteOptions, DeleteOptionsSync } from './options.js'; /** * Remove entries from an archive file. An entry is removed if * `files` lists its path or one of its parent directories. With * `opt.filter`, only if the filter also returns true. With no * `files`, each entry that the filter accepts is removed. A listed * path that no entry matches is a warning. * * The other entries are written to a new file next to the archive, * with the compression and the mode of the archive. The new file * then gets the path of the archive. The archive does not change if * the command fails. */ declare const del: (options: WithAliases<DeleteOptions>, files?: string[]) => Promise<void>; /** The sync form of `delete`. */ export declare const deleteSync: (options: WithAliases<DeleteOptionsSync>, files?: string[]) => void; export { del as delete }; //# sourceMappingURL=delete.d.ts.map