Add exceptions for Utility::MkDir{,P}

fixes #9689
This commit is contained in:
Michael Friedrich 2015-07-21 15:56:57 +02:00
parent c2027ef18c
commit 59b81168ff
1 changed files with 3 additions and 2 deletions

View File

@ -559,8 +559,9 @@ bool Utility::MkDir(const String& path, int flags)
#else /*_ WIN32 */ #else /*_ WIN32 */
if (mkdir(path.CStr()) < 0 && errno != EEXIST) { if (mkdir(path.CStr()) < 0 && errno != EEXIST) {
#endif /* _WIN32 */ #endif /* _WIN32 */
//TODO handle missing dirs properly BOOST_THROW_EXCEPTION(posix_error()
return false; << boost::errinfo_api_function("mkdir")
<< boost::errinfo_errno(errno));
} }
return true; return true;