Nested zips in Scala

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Nested zips in Scala

mg514448
Hi there, new to scala not new to coding. I can unzip files no problem but I'm having trouble with unzipping nested zip files with scala, has anyone here dealt with this problem and give some example of pointers? Thanks!

Original.zip contains
file1.txt
file2.txt
file3.zip contains
              file3.txt
file4.zip contains
              file4.txt

I want to be able to extract all the text files automatically/recursively

Thanks!
 

--
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Nested zips in Scala

Rex Kerr-2
You can do it the same way as in Java--use ZipInputStream to unpack the inner ones.  (Either ZipFile or ZipInputStream is okay for the outer.)

Incidentally, this kind of question is best asked on the scala-user list.

  --Rex


On Wed, Jun 15, 2016 at 9:22 AM, <[hidden email]> wrote:
Hi there, new to scala not new to coding. I can unzip files no problem but I'm having trouble with unzipping nested zip files with scala, has anyone here dealt with this problem and give some example of pointers? Thanks!

Original.zip contains
file1.txt
file2.txt
file3.zip contains
              file3.txt
file4.zip contains
              file4.txt

I want to be able to extract all the text files automatically/recursively

Thanks!
 

--
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.