| 133 | } |
| 134 | |
| 135 | void StdExplorer::RenameFile(const std::string &path, const std::string &new_name) { |
| 136 | const auto full_path = this->MakeFull(path); |
| 137 | const auto full_new_path = this->MakeFull(new_name); |
| 138 | |
| 139 | rename(full_path.c_str(), full_new_path.c_str()); |
| 140 | this->DoCommit(); |
| 141 | } |
| 142 | |
| 143 | void StdExplorer::RenameDirectory(const std::string &path, const std::string &new_name) { |
| 144 | return this->RenameFile(path, new_name); |
no test coverage detected