Class ReadDirectory
- Namespace
- ZeroInstall.Store.FileSystem
- Assembly
- ZeroInstall.Store.dll
Reads the content of a directory to an IBuilder.
public class ReadDirectory : ReadDirectoryBase, ITask
- Inheritance
-
objectMarshalByRefObjectReadDirectory
- Implements
- Inherited Members
Constructors
ReadDirectory(string, IForwardOnlyBuilder, string?, string?)
Creates a new directory read task.
public ReadDirectory(string path, IForwardOnlyBuilder builder, string? name = null, string? subDir = null)
Parameters
pathstringThe path of the directory to read.
builderIForwardOnlyBuilderThe builder to read to.
namestringA name describing the task in human-readable form.
subDirstringThe relative path of a subdirectory within the
pathto scope the read to. Use this if you still wantpathto be the location to search for a Manifest file but only read a subdirectory within it.
Properties
Name
A name describing the task in human-readable form.
public override string Name { get; }
Property Value
Methods
HandleDirectory(DirectoryInfo)
Called once for every sub-directory below Source.
protected override void HandleDirectory(DirectoryInfo entry)
Parameters
entryDirectoryInfo
HandleFile(FileInfo, FileInfo?)
Called once for every file below Source.
protected override void HandleFile(FileInfo file, FileInfo? hardlinkTarget = null)