Table of Contents

Struct FolderTotals

Namespace
Archiver.Core.IO
Assembly
Archiver.Core.dll

T-F236: the size of a folder tree, measured with the engines' own walk (Archiver.Core.IO.DirectoryWalker): links are not followed and an unreadable subfolder adds nothing instead of failing the whole count.

public readonly record struct FolderTotals : IEquatable<FolderTotals>
Implements
Inherited Members

Constructors

FolderTotals(long, int)

T-F236: the size of a folder tree, measured with the engines' own walk (Archiver.Core.IO.DirectoryWalker): links are not followed and an unreadable subfolder adds nothing instead of failing the whole count.

public FolderTotals(long Bytes, int Files)

Parameters

Bytes long

Total size of the files.

Files int

Number of files.

Properties

Bytes

Total size of the files.

public long Bytes { get; init; }

Property Value

long

Files

Number of files.

public int Files { get; init; }

Property Value

int

Methods

Measure(string, CancellationToken)

Walks folder; throws OperationCanceledException when cancellationToken is cancelled.

public static FolderTotals Measure(string folder, CancellationToken cancellationToken = default)

Parameters

folder string
cancellationToken CancellationToken

Returns

FolderTotals