jQuery in Action, 3rd edition
The moose likes I/O and Streams and the fly likes Modifying a .tar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Modifying a .tar file" Watch "Modifying a .tar file" New topic

Modifying a .tar file

Kamron Malik

Joined: Jun 04, 2014
Posts: 2
I have a .tar.gz file say it's called test.tar.gz
Currently I have a java program unpack this file to a folder
Unfortunately this erases all UNIX permissions and I am on a windows machine

Is there a way to put back or preserve unix permissions when it is unpacked and repacked into a tar.gz


Is there a way to modify a .tar with the apache commons compress library?

I am at a little of a loss here on how to keep the correct permissions
I agree. Here's the link: http://aspose.com/file-tools
subject: Modifying a .tar file
It's not a secret anymore!