Function TRAP::FileSystem::Copy#
Function Documentation#
-
bool TRAP::FileSystem::Copy(const std::filesystem::path &source, const std::filesystem::path &destination, bool overwriteExisting = false)#
Copy file or folder from source to destination.
Note
If destination is an already existing folder, then contents will be merged.
- Parameters:
source – Source to copy from.
destination – Target to copy into.
overwriteExisting – Whether to overwrite already existing files or not.
- Returns:
True on success, false otherwise.