copy_file


Description:

[ Version ( since = "0.17.0" ) ]
public bool copy_file (string src, string dest) throws Error

Copy a file.

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

Parameters:

this

A FileSystem.

src

The path of the source file.

dest

The path of the destination.

Returns:

true on success, false if there was an error.