Path.copy

void copy(string dest, bool recursive = false) const

Copies the file or directory to a new location.

Parameters

destThe destination path.
recursiveIf true, copy directories recursively.