This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.7zip.
Summary
Extract files from archive - with or without full path
(Commands: e and x).
With UseFullPath set to false, this represents the e-command: Extracts files from an archive to the current directory or to the output directory. The output directory can be specified by -o (Set Output Directory) switch. This command copies all extracted files to one directory.
With UseFullPath set to true, this represents the x-command: Extracts files from an archive with their full paths in the current directory, or in an output directory if specified.
The builder is ExtractCommandBuilder
.
- Assembly
- Cake
.7zip .dll - Namespace
- Cake
.SevenZip .Commands - Interfaces
-
- ICommand
- IHaveArgumentArchive
- IHaveArgument
- I
Support Switch Include Filenames - I
Support Switch Compression Method - I
Support Switch Password - I
Support Switch Recurse Subdirectories - I
Support Switch Nt Security Information - I
Support Switch Ntfs Alternate Streams - I
Support Switch Exclude Filenames - I
Support Switch Archive Type - I
Support Switch Include Archive Filenames - I
Support Switch Exclude Archive Filenames - I
Support Switch Disable Parsing Of Archive Name - I
Support Switch Overwrite Mode - I
Support Switch Output Directory - I
Support Switch Fully Qualified File Paths - ISupportSwitch
- Base Types
-
- Object
- BaseCommand
graph BT
Type-->Base0["BaseCommand"]
click Base0 "/api/Cake.SevenZip.Commands/BaseCommand"
Base0-->Base1["Object"]
Type-.->Interface0["ICommand"]
click Interface0 "/api/Cake.SevenZip.Commands/ICommand"
Type-.->Interface1["IHaveArgumentArchive"]
click Interface1 "/api/Cake.SevenZip.Arguments/IHaveArgumentArchive"
Type-.->Interface2["IHaveArgument"]
click Interface2 "/api/Cake.SevenZip.Arguments/IHaveArgument"
Type-.->Interface3["ISupportSwitchIncludeFilenames"]
click Interface3 "/api/Cake.SevenZip.Switches/ISupportSwitchIncludeFilenames"
Type-.->Interface4["ISupportSwitchCompressionMethod"]
click Interface4 "/api/Cake.SevenZip.Switches/ISupportSwitchCompressionMethod"
Type-.->Interface5["ISupportSwitchPassword"]
click Interface5 "/api/Cake.SevenZip.Switches/ISupportSwitchPassword"
Type-.->Interface6["ISupportSwitchRecurseSubdirectories"]
click Interface6 "/api/Cake.SevenZip.Switches/ISupportSwitchRecurseSubdirectories"
Type-.->Interface7["ISupportSwitchNtSecurityInformation"]
click Interface7 "/api/Cake.SevenZip.Switches/ISupportSwitchNtSecurityInformation"
Type-.->Interface8["ISupportSwitchNtfsAlternateStreams"]
click Interface8 "/api/Cake.SevenZip.Switches/ISupportSwitchNtfsAlternateStreams"
Type-.->Interface9["ISupportSwitchExcludeFilenames"]
click Interface9 "/api/Cake.SevenZip.Switches/ISupportSwitchExcludeFilenames"
Type-.->Interface10["ISupportSwitchArchiveType"]
click Interface10 "/api/Cake.SevenZip.Switches/ISupportSwitchArchiveType"
Type-.->Interface11["ISupportSwitchIncludeArchiveFilenames"]
click Interface11 "/api/Cake.SevenZip.Switches/ISupportSwitchIncludeArchiveFilenames"
Type-.->Interface12["ISupportSwitchExcludeArchiveFilenames"]
click Interface12 "/api/Cake.SevenZip.Switches/ISupportSwitchExcludeArchiveFilenames"
Type-.->Interface13["ISupportSwitchDisableParsingOfArchiveName"]
click Interface13 "/api/Cake.SevenZip.Switches/ISupportSwitchDisableParsingOfArchiveName"
Type-.->Interface14["ISupportSwitchOverwriteMode"]
click Interface14 "/api/Cake.SevenZip.Switches/ISupportSwitchOverwriteMode"
Type-.->Interface15["ISupportSwitchOutputDirectory"]
click Interface15 "/api/Cake.SevenZip.Switches/ISupportSwitchOutputDirectory"
Type-.->Interface16["ISupportSwitchFullyQualifiedFilePaths"]
click Interface16 "/api/Cake.SevenZip.Switches/ISupportSwitchFullyQualifiedFilePaths"
Type-.->Interface17["ISupportSwitch"]
click Interface17 "/api/Cake.SevenZip.Switches/ISupportSwitch"
Type["ExtractCommand"]
class Type type-node
Syntax
public sealed class ExtractCommand : BaseCommand, ICommand, IHaveArgumentArchive, IHaveArgument,
ISupportSwitchIncludeFilenames, ISupportSwitchCompressionMethod, ISupportSwitchPassword,
ISupportSwitchRecurseSubdirectories, ISupportSwitchNtSecurityInformation,
ISupportSwitchNtfsAlternateStreams, ISupportSwitchExcludeFilenames, ISupportSwitchArchiveType,
ISupportSwitchIncludeArchiveFilenames, ISupportSwitchExcludeArchiveFilenames,
ISupportSwitchDisableParsingOfArchiveName, ISupportSwitchOverwriteMode,
ISupportSwitchOutputDirectory, ISupportSwitchFullyQualifiedFilePaths, ISupportSwitch
Attributes
Type | Description |
---|---|
Nullable |
|
NullableAttribute |
Constructors
Name | Summary |
---|---|
ExtractCommand |
Initializes a new instance of the ExtractCommand class.
|
Properties
Name | Value | Summary |
---|---|---|
Archive | FilePath |
Sets the archive the command operates on.
|
ArchiveType | SwitchArchiveType |
Gets or sets the SwitchArchiveType.
|
CommandChar | string |
Gets the command character. (e.g. "a", "u" or "e"...)
|
CompressionMethod | Switch |
Gets or sets the compression method.
|
Disable |
Switch |
Gets or sets the SwitchDisableParsingOfArchiveName.
|
Exclude |
Switch |
Gets or sets the SwitchExcludeArchiveFilenameCollection.
|
ExcludeFilenames | Switch |
Gets or sets the SwitchExcludeFilenameCollection.
|
Fully |
Switch |
Gets or sets the SwitchFullyQualifiedFilePaths.
|
Include |
Switch |
Gets or sets the SwitchIncludeArchiveFilenameCollection.
|
IncludeFilenames | Switch |
Gets or sets the SwitchIncludeFilenameCollection.
|
NtfsAlternateStreams | Switch |
Gets or sets the SwitchNtfsAlternateStreams.
|
Nt |
Switch |
Gets or sets the SwitchNtSecurityInformation.
|
OutputDirectory | Switch |
Gets or sets the SwitchOutputDirectory.
|
OverwriteMode | SwitchOverwriteMode |
Gets or sets the SwitchOverwriteMode.
|
Password | SwitchPassword |
Gets or sets the SwitchPassword.
|
Recurse |
Switch |
Gets or sets the SwitchRecurseSubdirectories.
|
Switches | IEnumerable |
Gets all supported switches.
|
UseFullPaths | bool |
Gets or sets a value indicating whether to use full paths.
Default is true.
|
Methods
Name | Value | Summary |
---|---|---|
BuildArgumentParams |
void |
adds only the arguments to the builder. (i.e. Archive, files, directories).
|
BuildArguments |
void |
Builds the arguments.
Inherited from BaseCommand
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|