[This is preliminary documentation and is subject to change.]

Moves file from source to destination, overwriting destination if it exists, as safely as possible. File.Replace, File.Copy/File.Delete, or File.Move is used depending on circumstances.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
public static void MoveOrReplaceFile(
	string source,
	string destination
)

Parameters

source
String
File to be moved.
destination
String
Destination file name. If this file exists, it will be replaced.

Exceptions

ExceptionCondition
System..::..ArgumentNullException source or destination is used.

See Also