Summary
Calculates the hash for one or more files
(Command: h).
The builder is HashCommandBuilder
.
- Namespace
- Cake
.SevenZip .Commands - Interfaces
-
- ICommand
- ICanParseOutput
- IHaveArgumentFiles
- I
Have Argument Directories - IHaveArgument
- I
Support Switch Include Filenames - I
Support Switch Exclude Filenames - I
Support Switch Recurse Subdirectories - I
Support Switch Compression Method - I
Support Switch Compress Files Open For Writing - I
Support Switch Ntfs Alternate Streams - I
Support Switch Set Hash Function - ISupportSwitch
- Base Types
-
- object
- BaseCommand
- BaseOutputCommand
<IHashOutput>
graph BT
Type-->Base0["BaseOutputCommand<IHashOutput>"]
Base0-->Base1["BaseCommand"]
click Base1 "/Cake.7zip/api/Cake.SevenZip.Commands/BaseCommand"
Base1-->Base2["object"]
Type-.->Interface0["ICommand"]
click Interface0 "/Cake.7zip/api/Cake.SevenZip.Commands/ICommand"
Type-.->Interface1["ICanParseOutput"]
Type-.->Interface2["IHaveArgumentFiles"]
click Interface2 "/Cake.7zip/api/Cake.SevenZip.Arguments/IHaveArgumentFiles"
Type-.->Interface3["IHaveArgumentDirectories"]
click Interface3 "/Cake.7zip/api/Cake.SevenZip.Arguments/IHaveArgumentDirectories"
Type-.->Interface4["IHaveArgument"]
click Interface4 "/Cake.7zip/api/Cake.SevenZip.Arguments/IHaveArgument"
Type-.->Interface5["ISupportSwitchIncludeFilenames"]
click Interface5 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchIncludeFilenames"
Type-.->Interface6["ISupportSwitchExcludeFilenames"]
click Interface6 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchExcludeFilenames"
Type-.->Interface7["ISupportSwitchRecurseSubdirectories"]
click Interface7 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchRecurseSubdirectories"
Type-.->Interface8["ISupportSwitchCompressionMethod"]
click Interface8 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchCompressionMethod"
Type-.->Interface9["ISupportSwitchCompressFilesOpenForWriting"]
click Interface9 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchCompressFilesOpenForWriting"
Type-.->Interface10["ISupportSwitchNtfsAlternateStreams"]
click Interface10 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchNtfsAlternateStreams"
Type-.->Interface11["ISupportSwitchSetHashFunction"]
click Interface11 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchSetHashFunction"
Type-.->Interface12["ISupportSwitch"]
click Interface12 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitch"
Type["HashCommand"]
class Type type-node
Syntax
public sealed class HashCommand : BaseOutputCommand<IHashOutput>, ICommand, ICanParseOutput,
IHaveArgumentFiles, IHaveArgumentDirectories, IHaveArgument, ISupportSwitchIncludeFilenames,
ISupportSwitchExcludeFilenames, ISupportSwitchRecurseSubdirectories,
ISupportSwitchCompressionMethod, ISupportSwitchCompressFilesOpenForWriting,
ISupportSwitchNtfsAlternateStreams, ISupportSwitchSetHashFunction, ISupportSwitch
Constructors
Name | Summary |
---|---|
HashCommand |
Initializes a new instance of the HashCommand class.
|
Properties
Name | Value | Summary |
---|---|---|
CommandChar | string |
Gets the command character. (e.g. "a", "u" or "e"...)
|
Compress |
Switch |
Gets or sets the SwitchCompressFilesOpenForWriting.
|
CompressionMethod | Switch |
Gets or sets the compression method.
|
Directories | Directory |
Gets or sets the list of Directories the command operates on.
For add and update, adding a directory will add the directory itself to the root of the archive including everything in it. |
DirectoryContents | Directory |
Gets or sets the list of Directory-contents the command operates on.
For add and update, adding a directory this way will add the files of the directory to the root of the archive but not the directory itself. |
ExcludeFilenames | Switch |
Gets or sets the SwitchExcludeFilenameCollection.
|
Files | FilePathCollection? |
Gets or sets the list of files this command operates on.
These are single files. (I.e. to add to, or to remove from the archive).
For add and update, single files from the file-system will always be placed directly into the archive without any directory-structure. Setting Files like this in add/update:
Will result in an archive:
without any directory structure.
|
HashFunctions | Switch |
Gets or sets the SwitchNtfsAlternateStreams.
|
IncludeFilenames | Switch |
Gets or sets the SwitchIncludeFilenameCollection.
|
NtfsAlternateStreams | Switch |
Gets or sets the SwitchNtfsAlternateStreams.
|
Recurse |
Switch |
Gets or sets the SwitchRecurseSubdirectories.
|
Switches | IEnumerable |
Gets all supported switches.
|
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
|