| 262 | } |
| 263 | |
| 264 | bool utility::is_folder(const std::string& _path) { |
| 265 | struct stat its_stat; |
| 266 | if (stat(_path.c_str(), &its_stat) == 0) { |
| 267 | if (its_stat.st_mode & S_IFDIR) |
| 268 | return true; |
| 269 | } |
| 270 | return false; |
| 271 | } |
| 272 | |
| 273 | std::string utility::get_base_path(const std::string& _network) { |
| 274 | return base_path() + _network + "-"; |