diff --git a/utils/idbdatafile/IDBPolicy.cpp b/utils/idbdatafile/IDBPolicy.cpp index 58b1d4601..e8240c481 100644 --- a/utils/idbdatafile/IDBPolicy.cpp +++ b/utils/idbdatafile/IDBPolicy.cpp @@ -83,8 +83,15 @@ void IDBPolicy::init( bool bEnableLogging, bool bUseRdwrMemBuffer, const string& else { cout << tmpfilepath << endl; - - if (!boost::filesystem::create_directory(tmpfilepath)) + bool itWorked = false; + + try + { + itWorked = boost::filesystem::create_directories(tmpfilepath); + } + catch (...) + { } + if (!itWorked) { // We failed to create the scratch directory ostringstream oss;