• Post Reply Bookmark Topic Watch Topic
  • New Topic

Questions on JarEntry and File  RSS feed

Jack Wanes
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am wondering what a JarEntry represents? All files and directories inside a JarFile?

I can get the number of JarEntries using the following:

Then if I extract this jar and use a small program to recursively visit all files and directories,
I get a different number than that of total JarEntries.

I have to check the total number of files and directories after a jar file is programmatically extracted
so that I can make sure all contents are extracted.

Here is a function I used to visit all files and directories once a jar is extracted:

Why did not I get the same total number?

thanks in advance
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!