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