How to check if a file exists in a zip file

You can achieve this by using c# code in invoke code activity.

Please refer below c# code.

using (ZipArchive archive = ZipFile.OpenRead(zipPath))
{
foreach (ZipArchiveEntry entry in archive.Entries)
{
Console.WriteLine(entry.FullName);
//entry.ExtractToFile(Path.Combine(destFolder, entry.FullName));
}
}

1 Like