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
Properties
Bytes
Total size of the files.
public long Bytes { get; init; }
Property Value
Files
Number of files.
public int Files { get; init; }
Property Value
Methods
Measure(string, CancellationToken)
Walks folder; throws OperationCanceledException when
cancellationToken is cancelled.
public static FolderTotals Measure(string folder, CancellationToken cancellationToken = default)
Parameters
folderstringcancellationTokenCancellationToken