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
-
ReadDirectory
- Implements
- Inherited Members
Constructors
ReadDirectory(string, IForwardOnlyBuilder, string?)
Creates a new directory read task.
public ReadDirectory(string path, IForwardOnlyBuilder builder, string? name = null)
Parameters
path
stringThe path of the directory to read.
builder
IForwardOnlyBuilderThe builder to read to.
name
stringA name describing the task in human-readable form.
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
entry
DirectoryInfo
HandleFile(FileInfo, FileInfo?)
Called once for every file below Source.
protected override void HandleFile(FileInfo file, FileInfo? hardlinkTarget = null)