FileSystem.copyFile

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

class FileSystem
bool
copyFile
(
string src
,
string dest
)

Parameters

src string

The path of the source file.

dest string

The path of the destination.

Return Value

Type: bool

true on success, false if there was an error.