Skip to content
ConsoleMonster
Enum

FileConflictPolicy

ConsoleMonster.FileSystem

Namespace
ConsoleMonster.FileSystem
Assembly
ConsoleMonster
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

What happens when a copy or move meets an existing file.

Inheritance

  • Enum
  • FileConflictPolicy

Usage

Explore 8 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.

Accepted by parameters 2

Values

public const FileConflictPolicy Ask #

Ask FileOperationOptions.ResolveConflict for each conflict; without a callback, skip.

Value: 0
public const FileConflictPolicy Skip #

Keep the existing file.

Value: 1
public const FileConflictPolicy OverwriteOlder #

Replace the existing file only when the source was modified later.

Value: 2
public const FileConflictPolicy Overwrite #

Replace every existing file.

Value: 3
public const FileConflictPolicy Rename #

Keep both: the new file gets a free name such as report (2).csv.

Value: 4