Function mrpt::system::copyFile

Function Documentation

bool mrpt::system::copyFile(const std::string &sourceFile, const std::string &targetFile, std::string *outErrStr = nullptr)

Copies file sourceFile to targetFile. If the target file exists, it will be overwritten.

Note

(In MRPT 2.5.0, the copyAttributes param was removed)

Returns:

true on success, false on any error, whose description can be optionally get in outErrStr