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

Method GetCurrentDir

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

Source from the content-addressed store, hash-verified

120 static const char* GetCurrentApp(const char* defaultPath=NULL) { return _CurrentApp ? _CurrentApp.c_str() : defaultPath; }
121 static bool GetCurrentApp(std::string& path) { return _CurrentApp ? (path.assign(_CurrentApp), true) : false; }
122 static const char* GetCurrentDir(const char* defaultPath=NULL) { return _CurrentDirs ? _CurrentDirs.back().c_str() : defaultPath; }
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); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected