Class ZipArchiveExtensions
Nupkg reading helper methods
public static class ZipArchiveExtensions
- Inheritance
-
ZipArchiveExtensions
- Inherited Members
Methods
GetFiles(ZipArchive)
public static IEnumerable<string> GetFiles(this ZipArchive zipArchive)
Parameters
zipArchive
ZipArchive
Returns
LookupEntry(ZipArchive, string)
public static ZipArchiveEntry LookupEntry(this ZipArchive zipArchive, string path)
Parameters
zipArchive
ZipArchivepath
string
Returns
OpenFile(ZipArchive, string)
public static Stream OpenFile(this ZipArchive zipArchive, string path)
Parameters
zipArchive
ZipArchivepath
string
Returns
SaveAsFile(ZipArchiveEntry, string, ILogger)
public static string SaveAsFile(this ZipArchiveEntry entry, string fileFullPath, ILogger logger)
Parameters
entry
ZipArchiveEntryfileFullPath
stringlogger
ILogger
Returns
UpdateFileTimeFromEntry(ZipArchiveEntry, string, ILogger)
public static void UpdateFileTimeFromEntry(this ZipArchiveEntry entry, string fileFullPath, ILogger logger)
Parameters
entry
ZipArchiveEntryfileFullPath
stringlogger
ILogger