FileSystem.copyFile

bool copyFile(string src, string dest)

Copy a file. If the destination exists and is a directory, an error is returned. Otherwise, it is replaced.

Parameters

srcThe path of the source file.
destThe path of the destination.

Returns

true on success, false if there was an error.

Throws

[ErrorWrap]