IHaveArgumentFiles Interface

Summary

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

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.
GitHub Discussion