Skip to content
ConsoleMonster
Class

FileConflict

ConsoleMonster.FileSystem

Namespace
ConsoleMonster.FileSystem
Assembly
ConsoleMonster
Modifiers
sealed

An existing destination file met by a copy or move, with what's needed to decide.

Inheritance

  • object
  • FileConflict

Usage

Explore 1 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

Properties

public string Source { get; } #

The file being copied or moved.

public string Target { get; } #

The existing file.

public long SourceSize { get; } #

The source size in bytes.

public DateTime SourceModified { get; } #

When the source was last modified, in UTC.

public long TargetSize { get; } #

The existing file's size in bytes.

public DateTime TargetModified { get; } #

When the existing file was last modified, in UTC.

public bool SourceIsNewer { get; } #

Whether the source was modified after the existing file.

public bool IsSameFile { get; } #

Whether source and destination are the same file, which can only be kept or copied under a new name.

public string RenameTarget { get; set; } #

The path written by FileConflictResolution.Rename: a free name next to the target, such as report (2).csv. A UI may replace it with the name the user typed; a name without a folder stays next to the target.