FACT++  1.0
bool DataLogger::CreateDirectory ( const string &  path)
private

Create a given directory.

Check if a given path exists

Parameters
paththe path to be checked
Returns
whether or not the creation has been successfull

Definition at line 511 of file datalogger.cc.

References Error().

512 {
513  try
514  {
515  boost::filesystem::create_directories(path);
516  return true;
517  }
518  catch (const runtime_error &e)
519  {
520  Error(e.what());
521  return false;
522  }
523 }
int Error(const std::string &str)
Definition: MessageImp.h:49

+ Here is the call graph for this function: