4

I have a directory structure as follows:

Main
|
|--empty_folder
|
|--folder
   |
   |--example.txt

I'm zipping it using the .NET ZipFile.CreateFromDirectory method (but I doubt this has anything to do with the problem)

When I extract the archive using Windows Explorer the empty folder shows as expected. However if I extract the archive using 7zip the empty folder shows as a file! Has anyone else experienced this and if so is there a way to fix it?

  • Works as expected here. Which version of 7-zip? Which version of Windows? How exactly are you using 7-zip to extract it? can you provide a link to an example Zip file you've made that exhibits the problem? – Ƭᴇcʜιᴇ007 Aug 10 '15 at 20:17
  • 1
    I came to the same error using ZipFile.CreateFromDirectory with PowerShell. – Alex H Sep 30 '15 at 14:20
0

Answering because I just had the same problem and managed to solve it very simply.

This seems to be a problem with a specific version of 7-Zip. Updating 7-Zip to version 16.04 solves the problem, and no longer created empty files instead of empty folders.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.