Skip to content
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

transform the path when packing #10

Closed
petebacondarwin opened this issue May 22, 2012 · 2 comments
Closed

transform the path when packing #10

petebacondarwin opened this issue May 22, 2012 · 2 comments

Comments

@petebacondarwin
Copy link

Is it possible to transform the path of each file as it goes into the tarball.
In other words provide a mapping function that changes the path name that is attached to each file as it is added to the archive.

This can be done in the command line tar by using the --transform=expression option (see http://www.gnu.org/software/tar/manual/html_section/transform.html)

I have a need to prefix each file with an extra folder name.

I can't see an obvious way of achieving this without hacking the node-tar library.

@spolu
Copy link

spolu commented Nov 25, 2013

This would also be nice to have while extracting

@othiym23
Copy link
Contributor

othiym23 commented Dec 5, 2014

Closing as a duplicate of #17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants