FileOperationQueueCopy(FileInfo, String) Method

Queues a copy operation of a source file into its own directory.

Definition

Namespace: DevCase.Core.IO.FileSystem
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public void QueueCopy(
	FileInfo srcFile,
	string newFileName = ""
)

Parameters

srcFile  FileInfo
Source file to copy into its own directory.
newFileName  String  (Optional)
Gives a new name for the copied file.

If null, the new file name is the same as the source file name.

Note that for file duplication to take effect, the OperationFlags property must have the RenameCollision flag set before calling PerformOperations function.

See Also