What would be the easier and safer way in JAVA to store a folder in a single file like zip, tar, rar, iso, etc? something like compressing and decompressing it. I don’t really need compression, just putting the whole folder in a single file
I’m looking for a library that allows me to simply give it the path to the folder and obtain the file and the reverse process.
Thanks!
Check out ZT-Zip on GitHub.
Compress a directory into a ZIP archive
Extract a ZIP archive
The library supports a lot of other cool operations as well, including existence checking, extracting a subset of a zip archive and comparing zip archives.
Check out the Readme