Table of Contents

Class ZipArchiveExtensions

Namespace
NuGet.Packaging
Assembly
Chocolatey.NuGet.Packaging.dll

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

IEnumerable<string>

LookupEntry(ZipArchive, string)

public static ZipArchiveEntry LookupEntry(this ZipArchive zipArchive, string path)

Parameters

zipArchive ZipArchive
path string

Returns

ZipArchiveEntry

OpenFile(ZipArchive, string)

public static Stream OpenFile(this ZipArchive zipArchive, string path)

Parameters

zipArchive ZipArchive
path string

Returns

Stream

SaveAsFile(ZipArchiveEntry, string, ILogger)

public static string SaveAsFile(this ZipArchiveEntry entry, string fileFullPath, ILogger logger)

Parameters

entry ZipArchiveEntry
fileFullPath string
logger ILogger

Returns

string

UpdateFileTimeFromEntry(ZipArchiveEntry, string, ILogger)

public static void UpdateFileTimeFromEntry(this ZipArchiveEntry entry, string fileFullPath, ILogger logger)

Parameters

entry ZipArchiveEntry
fileFullPath string
logger ILogger