Otter SDK Reference
Version:

MoveFile(IFileOperationsExecuter agent, string sourceFileName, string targetFileName, bool overwrite) Method

Moves a file from sourceFileName to targetFileName.

Syntax

public static void MoveFile(IFileOperationsExecuter agent, string sourceFileName, string targetFileName, bool overwrite)

Parameters

agent
Type: IFileOperationsExecuter

The agent.

sourceFileName
Type: string

The full path of the source file.

targetFileName
Type: string

The full path of the target file.

overwrite
Type: bool

Value indicating whether targetFileName may be overwritten if necessary.