Andreas Reiff
Andreas Reiff

Reputation: 8404

DotNetZip IOException cannot extract - file already exists

I have a .zip Archive generated with compress-archive.

The archive opens fine with Windows Explorer and extracts fine with 7zip.

It has subfolders.

On extraction via extractall + overwritesilently, I get a System.IOException saying that the file already exists. (It is a empty folder with a new Guid in its path.)

When the exception occurs, I see a subfolder/file

temp\822b95bf-af5e-42d9-9d08-0cee1a3f6742\x.y.z\support\DotNetZip-nerkcop3.tmp

nothing else.

Any idea?

I created the file using

compress-archive -Path x -DestinationPath y.zip

Or might that be related to https://github.com/PowerShell/Microsoft.PowerShell.Archive/issues/71 and should I just use 7zip for compression?

Strangely, I created another archive using the same method which extracted fine.

Upvotes: 0

Views: 113

Answers (0)

Related Questions