permaculture playing cards*
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
Author

Modifying a .tar file

Kamron Malik
Greenhorn

Joined: Jun 04, 2014
Posts: 2
Hello,
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

OR

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
 
GeeCON Prague 2014
 
subject: Modifying a .tar file