Table of Contents

Enum FileMoveCollisionOption

Namespace
SunamoFileSystem.Enums
Assembly
SunamoFileSystem.dll

Specifies how to handle collisions when moving a file to a location where a file already exists.

public enum FileMoveCollisionOption
Extension Methods

Fields

AddFileSize = 1

Add the file size to the file name to differentiate it.

AddSerie = 0

Add a numeric series suffix to the file name to avoid collision.

DiscardFrom = 3

Discard the source file and keep the existing destination file.

DontManipulate = 5

Do not perform any manipulation; leave both files as they are.

LeaveLarger = 4

Keep the larger file and discard the smaller one.

Overwrite = 2

Overwrite the existing file at the destination.

ThrowEx = 6

Throw an exception when a collision is detected.