This content has been marked as final. Show 4 replies
Simply read the docs on ZipInputStream, and you see the getNextEntry() method:
"Reads the next ZIP file entry and positions stream at the beginning of the entry data."
It returns a ZipEntry reference. Try getName() on that entry.
I don't know why, but when I make the test:And you are sure that is was your directory entry?
On my directory entry into my ZIP file, the program return me that's a file.
Check entry.getName() to be sure.
If it is your directory entry then it should end with a slash.
Because the docs on isDirectory() say:
" A directory entry is defined to be one whose name ends with a '/'. "
Post some more info, your code, your output.