| 266 | #endif |
| 267 | |
| 268 | void MkDirs( const std::string& path ) |
| 269 | { |
| 270 | size_t start = 0; |
| 271 | size_t pos = 0; |
| 272 | std::string part; |
| 273 | pos = FindSlash( path, start ); |
| 274 | while( pos != std::string::npos ) |
| 275 | { |
| 276 | mkdir( path.substr( 0, pos ).c_str() ); |
| 277 | start = pos + 1; |
| 278 | pos = FindSlash( path, start ); |
| 279 | } |
| 280 | mkdir( path.c_str() ); |
| 281 | } |
| 282 | |
| 283 | } |
| 284 |
no test coverage detected