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 = 1Add the file size to the file name to differentiate it.
AddSerie = 0Add a numeric series suffix to the file name to avoid collision.
DiscardFrom = 3Discard the source file and keep the existing destination file.
DontManipulate = 5Do not perform any manipulation; leave both files as they are.
LeaveLarger = 4Keep the larger file and discard the smaller one.
Overwrite = 2Overwrite the existing file at the destination.
ThrowEx = 6Throw an exception when a collision is detected.