BuildMaster SDK Reference
Version:

ExtractZip(System.IO.Stream zipStream, string targetDirectory, Inedo.IO.FileCreationOptions options, System.Predicate<System.IO.Compression.ZipArchiveEntry> shouldExtract) Method

Extracts a zip file to the specified directory.

Syntax

public static void ExtractZip(System.IO.Stream zipStream, string targetDirectory, Inedo.IO.FileCreationOptions options, Predicate<System.IO.Compression.ZipArchiveEntry> shouldExtract)

Parameters

zipStream
Type: System.IO.Stream

The backing stream of the zip file to extract.

targetDirectory
Type: string

The directory to extract the zip file to.

options
Type: Inedo.IO.FileCreationOptions

Value controlling file overwrite behavior.

shouldExtract
Type: System.Predicate<System.IO.Compression.ZipArchiveEntry>

Delegate invoked to determine if an entry should be extracted. May be null (Nothing in Visual Basic).

Remarks

If targetDirectory does not exist, it is created.