This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

compressing/uncompressing folders  RSS feed

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all !
I have a folder which contains several files and I want to compress those folder (with the files) using gzip. I wrote some lines of code which compressed and uncompressed a simple text file and it worked fine. It also compressed the folder with the files without grumbling.
But now I ask myself how to decompress that folder (and the files in it) again ?
Does it work with gzip ?
I don't have a clue ...
Thanx in advance!
- Thomas -
 
Ranch Hand
Posts: 251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here, I already wrote a library of zip utilities using the built in zip functionality. Feel free to use it.
ZipUtilites.java
 
Thomas Rochon
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx a lot Phil !
Your code works fine and does exactly what I was searching for.
Interim I took a look at some tutorials and determine that I was wrong from the outset. I was searchin for a way to solve my problem with gzip.
But now I know there apparently isn't.
Again: I'm very happy with YOUR solution and therefore I thank you very much !
Best regards,
- Thomas -
[ April 10, 2003: Message edited by: Thomas Rochon ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!