fast-extract
Version:
Extract contents from various archive types (tar, tar.bz2, tar.gz, tar.xz, tgz, zip)
23 lines (22 loc) • 927 B
JavaScript
// import SevenZTransform from '../transforms/7z.js';
// import EntryProgressTransform from '../transforms/EntryProgress.js';
// import PathToData from '../transforms/PathToData.js';
// import WriteFileTransform from '../transforms/WriteFile.js';
// import createWriteEntriesStream from '../write/entries.js';
export default function create7zPipeline(_dest, _streams, _options) {
throw new Error('7z not supported');
// const isPath = typeof options.source === 'string';
// streams = streams.slice();
// if (isPath) {
// if (streams.length) {
// streams.unshift(new PathToData());
// streams.push(new WriteFileTransform(dest, options));
// }
// } else {
// streams.push(new WriteFileTransform(dest, options));
// }
// streams.push(new SevenZTransform());
// !options.progress || streams.push(new EntryProgressTransform(options));
// streams.push(createWriteEntriesStream(dest, options));
// return streams;
}