\r
try\r
{\r
+ try\r
+ {\r
+ auto log_path = boost::filesystem::path(log);\r
+ if(!boost::filesystem::exists(log_path))\r
+ boost::filesystem::create_directories(log_path);\r
+ }\r
+ catch(...)\r
+ {\r
+ log = L"./";\r
+ }\r
+\r
auto media_path = boost::filesystem::path(media);\r
if(!boost::filesystem::exists(media_path))\r
boost::filesystem::create_directories(media_path);\r
- \r
- auto log_path = boost::filesystem::path(log);\r
- if(!boost::filesystem::exists(log_path))\r
- boost::filesystem::create_directories(log_path);\r
- \r
+ \r
auto template_path = boost::filesystem::path(ftemplate);\r
if(!boost::filesystem::exists(template_path))\r
boost::filesystem::create_directories(template_path);\r