Table of Contents

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 string

The path of the directory to read.

builder IForwardOnlyBuilder

The builder to read to.

name string

A 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

string

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)

Parameters

file FileInfo

The file to handle.

hardlinkTarget FileInfo

A previously handled file that is hardlinked to file. May be null.