Skip to content
ConsoleMonster
Class

FileOperationResult

ConsoleMonster.FileSystem

Namespace
ConsoleMonster.FileSystem
Assembly
ConsoleMonster
Modifiers
sealed

The summary of a finished operation. Failed items can be retried; leaving them is the skip.

Inheritance

  • object
  • FileOperationResult

Usage

Explore 4 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 2

Accepted by parameters 2

Methods

public FileOperation? RetryFailed() #

An operation that tries the failed items again with the same options, or null when nothing failed.

Returns

FileOperation? The retry, which runs only when started.
public override string ToString() #

Returns a string that represents the current object.

Returns

string A string that represents the current object.

Properties

public FileOperationKind Kind { get; } #

The operation.

public int Completed { get; } #

Items done.

public int Skipped { get; } #

Items skipped by a conflict answer or policy.

public int NotProcessed { get; } #

Items never reached because the operation was cancelled. A folder not yet scanned counts as one item.

public long BytesTransferred { get; } #

Bytes written.

public bool Canceled { get; } #

Whether cancellation (or a Cancel answer) stopped the operation after the item in progress.

public TimeSpan Elapsed { get; } #

How long it ran.

public IReadOnlyList<FileOperationError> Errors { get; } #

The items that failed, in the order they failed.

public bool Succeeded { get; } #

Whether every item completed or was deliberately skipped.