static
| 68 | |
| 69 | // static |
| 70 | Platform::EError Platform::MkDir(std::string const & dirName) |
| 71 | { |
| 72 | if (QDir().exists(dirName.c_str())) |
| 73 | return Platform::ERR_FILE_ALREADY_EXISTS; |
| 74 | if (!QDir().mkdir(dirName.c_str())) |
| 75 | { |
| 76 | LOG(LWARNING, ("Can't create directory: ", dirName)); |
| 77 | return Platform::ERR_UNKNOWN; |
| 78 | } |
| 79 | return Platform::ERR_OK; |
| 80 | } |
| 81 | |
| 82 | void Platform::SetupMeasurementSystem() const |
| 83 | { |
no outgoing calls