Summary
Update older files in the archive and add files that are not already in the archive.
(Command: u)
Note: the updating of solid .7z archives can be slow, since it can require some re-compression.
The builder is UpdateCommandBuilder
.
- Namespace
- Cake
.SevenZip .Commands - Interfaces
-
- IHaveArgumentArchive
- IHaveArgumentFiles
- I
Have Argument Directories - IHaveArgument
- ICommand
- 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 Compress Files Open For Writing - I
Support Switch Timestamp From Most Recent File - I
Support Switch Archive Type - I
Support Switch Working Directory - I
Support Switch Exclude Filenames - I
Support Switch Update Options - I
Support Switch Self Extracting Archive - I
Support Switch Fully Qualified File Paths - ISupportSwitch
- Base Types
graph BT
Type-->Base0["BaseAddLikeSyntaxCommand"]
click Base0 "/Cake.7zip/api/Cake.SevenZip.Commands/BaseAddLikeSyntaxCommand"
Base0-->Base1["BaseCommand"]
click Base1 "/Cake.7zip/api/Cake.SevenZip.Commands/BaseCommand"
Base1-->Base2["object"]
Type-.->Interface0["IHaveArgumentArchive"]
click Interface0 "/Cake.7zip/api/Cake.SevenZip.Arguments/IHaveArgumentArchive"
Type-.->Interface1["IHaveArgumentFiles"]
click Interface1 "/Cake.7zip/api/Cake.SevenZip.Arguments/IHaveArgumentFiles"
Type-.->Interface2["IHaveArgumentDirectories"]
click Interface2 "/Cake.7zip/api/Cake.SevenZip.Arguments/IHaveArgumentDirectories"
Type-.->Interface3["IHaveArgument"]
click Interface3 "/Cake.7zip/api/Cake.SevenZip.Arguments/IHaveArgument"
Type-.->Interface4["ICommand"]
click Interface4 "/Cake.7zip/api/Cake.SevenZip.Commands/ICommand"
Type-.->Interface5["ISupportSwitchIncludeFilenames"]
click Interface5 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchIncludeFilenames"
Type-.->Interface6["ISupportSwitchCompressionMethod"]
click Interface6 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchCompressionMethod"
Type-.->Interface7["ISupportSwitchPassword"]
click Interface7 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchPassword"
Type-.->Interface8["ISupportSwitchRecurseSubdirectories"]
click Interface8 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchRecurseSubdirectories"
Type-.->Interface9["ISupportSwitchNtSecurityInformation"]
click Interface9 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchNtSecurityInformation"
Type-.->Interface10["ISupportSwitchNtfsAlternateStreams"]
click Interface10 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchNtfsAlternateStreams"
Type-.->Interface11["ISupportSwitchCompressFilesOpenForWriting"]
click Interface11 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchCompressFilesOpenForWriting"
Type-.->Interface12["ISupportSwitchTimestampFromMostRecentFile"]
click Interface12 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchTimestampFromMostRecentFile"
Type-.->Interface13["ISupportSwitchArchiveType"]
click Interface13 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchArchiveType"
Type-.->Interface14["ISupportSwitchWorkingDirectory"]
click Interface14 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchWorkingDirectory"
Type-.->Interface15["ISupportSwitchExcludeFilenames"]
click Interface15 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchExcludeFilenames"
Type-.->Interface16["ISupportSwitchUpdateOptions"]
click Interface16 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchUpdateOptions"
Type-.->Interface17["ISupportSwitchSelfExtractingArchive"]
click Interface17 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchSelfExtractingArchive"
Type-.->Interface18["ISupportSwitchFullyQualifiedFilePaths"]
click Interface18 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitchFullyQualifiedFilePaths"
Type-.->Interface19["ISupportSwitch"]
click Interface19 "/Cake.7zip/api/Cake.SevenZip.Switches/ISupportSwitch"
Type["UpdateCommand"]
class Type type-node
Syntax
public sealed class UpdateCommand : BaseAddLikeSyntaxCommand, IHaveArgumentArchive,
IHaveArgumentFiles, IHaveArgumentDirectories, IHaveArgument, ICommand,
ISupportSwitchIncludeFilenames, ISupportSwitchCompressionMethod, ISupportSwitchPassword,
ISupportSwitchRecurseSubdirectories, ISupportSwitchNtSecurityInformation,
ISupportSwitchNtfsAlternateStreams, ISupportSwitchCompressFilesOpenForWriting,
ISupportSwitchTimestampFromMostRecentFile, ISupportSwitchArchiveType,
ISupportSwitchWorkingDirectory, ISupportSwitchExcludeFilenames, ISupportSwitchUpdateOptions,
ISupportSwitchSelfExtractingArchive, ISupportSwitchFullyQualifiedFilePaths, ISupportSwitch
Properties
Name | Value | Summary |
---|---|---|
Archive | FilePath? |
Sets the archive the command operates on.
Inherited from Base
|
ArchiveType | SwitchArchiveType? |
Gets or sets the SwitchArchiveType.
|
CommandChar | string |
Gets the command character. (e.g. "a", "u" or "e"...)
|
CommandName | string |
Gets the name of the command. (i.e. "add", "update" or "extract".)
|
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. Inherited from Base
|
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. Inherited from Base
|
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.
Inherited from Base
|
Fully |
Switch |
Gets or sets the SwitchFullyQualifiedFilePaths.
|
IncludeFilenames | Switch |
Gets or sets the SwitchIncludeFilenameCollection.
|
Nt |
Switch |
Gets or sets the SwitchNtSecurityInformation.
|
NtfsAlternateStreams | Switch |
Gets or sets the SwitchNtfsAlternateStreams.
|
Password | SwitchPassword? |
Gets or sets the SwitchPassword.
|
Recurse |
Switch |
Gets or sets the SwitchRecurseSubdirectories.
|
Self |
Switch |
Gets or sets the SwitchSelfExtractingArchive.
|
Switches | IEnumerable |
Gets all supported switches.
|
Throw |
bool |
Gets a value indicating whether to throw on missing input files.
Inherited from Base
|
Timestamp |
Switch |
Gets or sets the SwitchSetTimestampFromMostRecentFile.
|
UpdateOptions | SwitchUpdateOptions? |
Gets or sets the SwitchUpdateOptions.
|
WorkingDirectory | Switch |
Gets or sets the SwitchWorkingDirectory.
|
Methods
Name | Value | Summary |
---|---|---|
BuildArgumentParams |
void |
adds only the arguments to the builder. (i.e. Archive, files, directories).
Inherited from Base
|
BuildArguments |
void |
Builds the arguments.
Inherited from BaseCommand
|