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
I need to replace a file in the tar, and get the desired result (see #149). I would prefer though to delete the file first and then re-append it.
Would you consider adding a tar.delete, as described in https://www.gnu.org/software/tar/manual/html_section/tar_32.html#SEC66 ?
tar.delete
The text was updated successfully, but these errors were encountered:
I'd be open to it.
In the meantime, you could work around this by creating a new archive with a filter function.
tar.create({ filter: entry => entry.path !== 'foo.txt' // the file to be deleted file: 'new.tar' }, ['@old.tar']).then(() => fs.renameSync('new.tar', 'old.tar'))
I imagine that's more or less how gnutar does it?
Sorry, something went wrong.
@nuest The tar.delete link you provided is broken.
this is the working link https://www.gnu.org/software/tar/manual/tar.html#delete
No branches or pull requests
I need to replace a file in the tar, and get the desired result (see #149). I would prefer though to delete the file first and then re-append it.
Would you consider adding a
tar.delete
, as described in https://www.gnu.org/software/tar/manual/html_section/tar_32.html#SEC66 ?The text was updated successfully, but these errors were encountered: