public static void AddFile(this IArchive archive, string filePath, string entryName) { archive.AddEntry(File.OpenRead(filePath), entryName, leaveOpen: false); }
public static IArchiveEntry AddEntry(this IArchive archive, Stream stream, string entryName) { return(archive.AddEntry(stream, entryName, ArchiveEntryOptions.Default)); }