I have a file upload control. I restrict users to upload only zip files. the namespace i use is Ionic.Zip; I also want check if that zip file has a folder inside. I have to restrict the users not upload a zipfile with a folder inside. I could check how many files inside zip file like
using (ZipFile zip = ZipFile.Read(file_path))
{
if (zip.Count < 5)
{
}
I do not know how to check for a folder inside
Anyone can help me please. thanks in advance