MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / Rename

Method Rename

MonaBase/include/Mona/FileSystem.h:127–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 static bool CreateDirectory(Exception& ex, const std::string& path, Mode mode = LOW) { return CreateDirectory(ex, path.data(),path.size(),mode); }
126 static bool CreateDirectory(Exception& ex, const char* path, Mode mode = LOW) { return CreateDirectory(ex, path,strlen(path),mode); }
127 static bool Rename(const std::string& fromPath, const std::string& toPath) { return rename(fromPath.c_str(), toPath.c_str()) == 0; }
128 static bool Rename(const std::string& fromPath, const char* toPath) { return rename(fromPath.c_str(), toPath) == 0; }
129 static bool Rename(const char* fromPath, const std::string& toPath) { return rename(fromPath, toPath.c_str()) == 0; }
130 static bool Rename(const char* fromPath, const char* toPath) { return rename(fromPath, toPath) == 0; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected