0

Let suppose, I have a zip file 'zipTest', it contains two directories say 'Final' and 'Test' (zip file may contain more directoris as well, for simplicity I mentioned only two). I want to list all the direct children directories name present inside 'Final' directory in java, (I do not want to extract zip file due to some obvious reasons).

See zip structure here

I want to list all the direct children directories for 'Final' directory present inside zip file. Directories name 'a' and 'b' should be listed as they are the direct children of 'Final' directory.

  • 1
    https://stackoverflow.com/questions/36548755/read-zip-file-content-without-extracting-in-java This can help – JCompetence Feb 07 '21 at 20:18
  • Create a [Zip file system provider](https://docs.oracle.com/javase/7/docs/technotes/guides/io/fsp/zipfilesystemprovider.html) and use the standard file system functions. – vanje Feb 08 '21 at 15:03

0 Answers0