IHaveArgumentFiles Interface

Summary

Interface for all commands supporting multiple files as arguments.
graph BT Type-.->Interface0["IHaveArgument"] click Interface0 "/api/Cake.SevenZip.Arguments/IHaveArgument" Type["IHaveArgumentFiles"] class Type type-node Implementing0["HashCommand"]-.->Type click Implementing0 "/api/Cake.SevenZip.Commands/HashCommand" Implementing1["UpdateCommand"]-.->Type click Implementing1 "/api/Cake.SevenZip.Commands/UpdateCommand" Implementing2["AddCommand"]-.->Type click Implementing2 "/api/Cake.SevenZip.Commands/AddCommand" Implementing3["DeleteCommand"]-.->Type click Implementing3 "/api/Cake.SevenZip.Commands/DeleteCommand" Implementing4["BaseAddLikeSyntaxCommand"]-.->Type click Implementing4 "/api/Cake.SevenZip.Commands/BaseAddLikeSyntaxCommand" Implementing5["TestCommand"]-.->Type click Implementing5 "/api/Cake.SevenZip.Commands/TestCommand"

Syntax

public interface IHaveArgumentFiles : IHaveArgument

Properties

Name Value Summary
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:
Files = new[] {
  new FilePath("C:\\some\\place\\a.txt"),
  new FilePath("C:\\some\\other\\place\\b.txt"),
  new FilePath("C:\\a\\totally\\different\\place\\c.txt")
};
Will result in an archive:
Archive.zip
- a.txt
- b.txt
- c.txt
without any directory structure.

Extension Methods

Name Value Summary
Dump<IHaveArgumentFiles>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<IHaveArgumentFiles>(IHaveArgumentFiles[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<IHaveArgumentFiles>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<IHaveArgumentFiles>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<IHaveArgumentFiles>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<IHaveArgumentFiles>(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