Zipper Class

Summary

Performs Zip compression.
Namespace
Cake.Common.IO
Base Types
  • object
graph BT Type-->Base0["object"] Type["Zipper"] class Type type-node

Syntax

public sealed class Zipper

Constructors

Name Summary
Zipper(IFileSystem, ICakeEnvironment, ICakeLog) Initializes a new instance of the Zipper class.

Methods

Name Value Summary
Unzip(FilePath, DirectoryPath, bool) void
Unzips the specified file to the specified output path.
Unzip(FilePath, DirectoryPath) void
Unzips the specified file to the specified output path.
Zip(DirectoryPath, FilePath, IEnumerable<FilePath>) void
Zips the specified directory.
Zip(DirectoryPath, FilePath, IEnumerable<Path>) void
Zips the specified directory.

Extension Methods

Name Value Summary
Dump<Zipper>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<Zipper>(Zipper[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<Zipper>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<Zipper>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<Zipper>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<Zipper>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin