using System.IO;
using System.IO.Compression;
using System.Linq;
namespace API.Extensions;
#nullable enable
public static class ZipArchiveExtensions
{
///
/// Checks if archive has one or more files. Excludes directory entries.
///
///
///
public static bool HasFiles(this ZipArchive archive)
{
return archive.Entries.Any(x => Path.HasExtension(x.FullName));
}
}