6

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?

1 Answers1

2

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.