-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
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
Add support for --delete option #192
Labels
Enhancement
new feature or improvement
Comments
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? |
@nuest The |
this is the working link https://www.gnu.org/software/tar/manual/tar.html#delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: