I am trying to get all the file names that are located in the top level of a zip file and not anything in subdirectories.
The code I'm currently using is
using System.IO.Compression.ZipFile;
using (var zip = ZipFile.OpenRead(pathToZip))
{
foreach (var e in zip.Entries)
{
var filename = e.Name;
}
}
But this code gets all the files in the zip. Any help is much apricated.
Thanks