Version:
CopyFile(IFileOperationsExecuter agent, string sourcePath, string targetPath, bool overwrite) Method
Copies the file from sourcePath to targetPath.
Syntax
public
static
void CopyFile(IFileOperationsExecuter agent, string sourcePath, string targetPath, bool overwrite)
Parameters
- agent
- Type: IFileOperationsExecuter
The agent.
- sourcePath
- Type: string
Full path of the source file.
- targetPath
- Type: string
Full path of the target file.
- overwrite
- Type: bool
Value indicating whether a file at targetPath may be overwritten if necessary.