Skip to content
Snippets Groups Projects
Commit a8f030d3 authored by Mark Woolrich's avatar Mark Woolrich
Browse files

*** empty log message ***

parent 04dc46b6
No related branches found
No related tags found
No related merge requests found
......@@ -95,19 +95,11 @@ namespace Utilities {
stream_to_logfile = pstream_to_logfile;
stream_to_cout = pstream_to_cout;
ifstream dirif;
dirif.open(dir.c_str(), ios::in);
bool direxists = !logfileout.bad();
cout << "direxists = " << direxists << endl;
if(!direxists)
// make directory
int ret = system(("mkdir -p "+ dir + " 2>/dev/null").c_str());
if(ret == -1)
{
// make directory
int ret = system(("mkdir "+ dir + " 2>/dev/null").c_str());
if(ret == 0)
{
throw Exception(string(string("Unable to make directory ")+dir).c_str());
}
throw Exception(string(string("Unable to make directory ")+dir).c_str());
}
// setup logfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment