I have a program in C# which unzip files with ZipFile. It is normally working but if the zip file is empty it fails.
The code:
System.IO.Compression.ZipFile.ExtractToDirectory(fileName, dirName);
Is there a way to detect if the zip file is empty and delete it? (I do not want to delete the file if it fails and it is not empty.)