in JetBrains.SbomUtils/src/JetBrains.SbomUtils/ZipArchiveSoftwareProvider.cs [11:26]
public static bool IsSupported(string path)
{
if (!File.Exists(path))
return false;
try
{
using (ZipFile.OpenRead(path)) { }
}
catch (Exception)
{
return false;
}
return true;
}