Skip to content
ConsoleMonster
Class

FileOperationProgress

ConsoleMonster.FileSystem

Namespace
ConsoleMonster.FileSystem
Assembly
ConsoleMonster
Modifiers
sealed

A snapshot of a running operation's progress.

Inheritance

  • object
  • FileOperationProgress

Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 2

Properties

public FileOperationKind Kind { get; } #

The operation.

public FileOperationPhase Phase { get; } #

Scanning, running or completed.

public string? CurrentItem { get; } #

The path being processed, or null between items.

public int ItemsDone { get; } #

Items finished, skipped or failed so far.

public int ItemsTotal { get; } #

Items found by the scan; it grows while scanning.

public long BytesDone { get; } #

Bytes copied, or accounted for by skipped and renamed items.

public long BytesTotal { get; } #

Bytes found by the scan; zero for operations that don't copy data.

public long CurrentItemBytesDone { get; } #

Bytes copied of the current item.

public long CurrentItemBytes { get; } #

The current item's size.

public double BytesPerSecond { get; } #

Recent throughput, smoothed over the last few seconds.

public TimeSpan Elapsed { get; } #

Time since the operation started.

public TimeSpan? Remaining { get; } #

Estimated time left, or null until there's enough to estimate from.

public double Percent { get; } #

Overall completion from 0 to 100: by bytes when there are bytes to copy, otherwise by items.