I want to support split zip files in my project, and to have different implementations case the zip file is split or not. How do I check if the zip file is split?
using Ionic.Zip;
protected static bool IsZipFileSplit(string filePath)
{
try
{
ZipFile zipFile = new ZipFile(filePath);
bool isSplit = ?????
return isSplit;
}
catch (ZipException) { }
catch (IOException) { }
}
At the moment i'm using Ionic.Zip (DotNetZip Library). As I understand, it does not export any public data regarding if a zip file is split or not. It does have the public property NumberOfSegmentsForMostRecentSave, but the value refers only to the last save of the current zip file and not for new zip files opened with existing split zip file path.