MCPcopy Create free account
hub / github.com/carbonengine/trinity / MkDirs

Function MkDirs

trinityal/tests/WithValidRenderContextFixture.cpp:268–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266#endif
267
268void 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

Callers 1

MakeTestScreenShotMethod · 0.85

Calls 1

FindSlashFunction · 0.85

Tested by

no test coverage detected