Reputation: 31
I am extracting a zip file in Java with Zip4j.
The zip will look something like this:
ZipName.zip
|
->foo/
|
->SomeDirectory/
->fooBar.dll
I write
ZipFile zipFile = new ZipFile("ZipName.zip");
zipFile.extractFile("foo/", "destination/");
And after extraction I want my destination to look like this:
desitnation/
|
->SomeDirectory/
->fooBar.dll
But instead, it looks like this:
destination/
|
->foo/
|
->SomeDirectory/
->fooBar.dll
So I want each FileHeader in foo/
to go directly to destination/
without creating directory foo/
in destination. Is this possible?
Upvotes: 1
Views: 591