| 280 | } |
| 281 | |
| 282 | bool CreateDirectory (const std::string& path) |
| 283 | { |
| 284 | if (fs_lib::exists(path) && fs_lib::is_directory (fs_lib::status (path))) |
| 285 | return true; |
| 286 | return fs_lib::create_directory(path); |
| 287 | } |
| 288 | |
| 289 | void HashedStorage::SetPlace(const std::string &path) { |
| 290 | root = path + i2p::fs::dirSep + name; |