MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / RenameFile

Method RenameFile

Goldleaf/source/fs/fs_StdExplorer.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 4

RenameDirectoryMethod · 0.95
ExitFunction · 0.45
OnFileSelectedMethod · 0.45

Calls 2

DoCommitMethod · 0.95
MakeFullMethod · 0.80

Tested by

no test coverage detected