MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / MakeRunDirectory

Function MakeRunDirectory

Source/Test/BatchTest.cpp:120–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120static bool MakeRunDirectory( IO::Filename & rundir, const char * batchdir )
121{
122 // Find an unused directory
123 for( u32 run_id = 0; run_id < 100; ++run_id )
124 {
125 SprintRunDirectory( rundir, batchdir, run_id );
126
127 // Skip if it already exists as a file or directory
128 if( IO::Directory::Create( rundir ) )
129 return true;
130 }
131
132 return false;
133}
134
135void BatchTestMain( int argc, char* argv[] )
136{

Callers 1

BatchTestMainFunction · 0.85

Calls 2

SprintRunDirectoryFunction · 0.85
CreateFunction · 0.50

Tested by

no test coverage detected