Zero Install .NET API 2.20.0
ZeroInstall.Store.FileSystem.ReadDirectory Class Reference

Reads the content of a directory to an IBuilder. More...

Inheritance diagram for ZeroInstall.Store.FileSystem.ReadDirectory:
NanoByte::Common::Storage::ReadDirectoryBase NanoByte::Common::Tasks::TaskBase NanoByte::Common::Tasks::ITask

Public Member Functions

 ReadDirectory (string path, IForwardOnlyBuilder builder)
 Creates a new directory read task. More...
- Public Member Functions inherited from NanoByte::Common::Tasks::TaskBase
void Run (CancellationToken cancellationToken=default, ICredentialProvider? credentialProvider=null, IProgress< TaskSnapshot >? progress=null)

Protected Member Functions

override void HandleDirectory (DirectoryInfo entry)
override void HandleFile (FileInfo file, FileInfo? hardlinkTarget=null)
- Protected Member Functions inherited from NanoByte::Common::Storage::ReadDirectoryBase
 ReadDirectoryBase ([Localizable(false)] string path)
override void Execute ()


override string Name [get]
- Properties inherited from NanoByte::Common::Storage::ReadDirectoryBase
override bool UnitsByte
bool FollowSymlinks
- Properties inherited from NanoByte::Common::Tasks::TaskBase
abstract string Name
object? Tag
virtual bool CanCancel
TaskState State
abstract bool UnitsByte
long UnitsProcessed
long UnitsTotal
- Properties inherited from NanoByte::Common::Tasks::ITask
string Name
object? Tag
bool CanCancel

Additional Inherited Members

- Protected Attributes inherited from NanoByte::Common::Storage::ReadDirectoryBase
readonly DirectoryInfo Source
- Protected Attributes inherited from NanoByte::Common::Tasks::TaskBase
CancellationToken CancellationToken
ICredentialProvider? CredentialProvider

Detailed Description

Reads the content of a directory to an IBuilder.

Constructor & Destructor Documentation

◆ ReadDirectory()

ZeroInstall.Store.FileSystem.ReadDirectory.ReadDirectory ( string  path,
IForwardOnlyBuilder  builder 

Creates a new directory read task.

pathThe path of the directory to read.
builderThe builder to read to.

Member Function Documentation

◆ HandleDirectory()

override void ZeroInstall.Store.FileSystem.ReadDirectory.HandleDirectory ( DirectoryInfo  entry)

◆ HandleFile()

override void ZeroInstall.Store.FileSystem.ReadDirectory.HandleFile ( FileInfo  file,
FileInfo?  hardlinkTarget = null 

The documentation for this class was generated from the following file: