Function mrpt::system::renameFile
Defined in File filesystem.h
Function Documentation
-
bool mrpt::system::renameFile(const std::string &oldFileName, const std::string &newFileName, std::string *error_msg = nullptr)
Renames a file - If the target path is different and the filesystem allows it, it will be moved to the new location.
- Returns:
false on any error. In that case, if a pointer to a receiver string is passed in error_msg, a description of the error is saved there.