This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Have you checked out Aspose?
subject: Modifying a .tar file
It's not a secret anymore!