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
How can I extract only specific files? The command line switches using just 7z is 7z e [archive.zip] -o [outputdir] [fileFilter]
7z e [archive.zip] -o [outputdir] [fileFilter]
const extractStream = extractFull('./archive.7z', './tmp/', { password: password, $bin: pathTo7zip, //$raw: ['-o./tmp/', 'x.jpg'] //outputDir: `${outputFolderPath} x.jpg` });
I've tried the above, but the extract does all files instead of just x.jpg.
x.jpg
The text was updated successfully, but these errors were encountered:
Try This:
const Seven = require('node-7z'); const myStream = Seven.extract('./test.7z', 'folder to extract to', { $cherryPick: ['*.txt*', '*.js'], // The file that you want });
Sorry, something went wrong.
Thanks @adamflorizone that worked 👍
No branches or pull requests
How can I extract only specific files?
The command line switches using just 7z is
7z e [archive.zip] -o [outputdir] [fileFilter]
I've tried the above, but the extract does all files instead of just
x.jpg
.The text was updated successfully, but these errors were encountered: