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

Method CreateDirectory

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

Source from the content-addressed store, hash-verified

123 static bool GetCurrentDir(std::string& path) { return _CurrentDirs ? (path.assign(_CurrentDirs.back()),true) : false; }
124
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; }

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected