482 {
483 BOOST_LOG_TRIVIAL(debug) << "message part:" << possible_path;
484
485 if (possible_path.empty() || possible_path.size() < 3) {
486 BOOST_LOG_TRIVIAL(debug) << "empty";
487 return boost::filesystem::path();
488 }
489 if (boost::filesystem::exists(possible_path)) {
490 BOOST_LOG_TRIVIAL(debug) << "is path";
491 return boost::filesystem::path(possible_path);
492 } else if (possible_path[0] == '\"') {
493 if(boost::filesystem::exists(possible_path.substr(1, possible_path.size() - 2))) {
494 BOOST_LOG_TRIVIAL(debug) << "is path in quotes";
495 return boost::filesystem::path(possible_path.substr(1, possible_path.size() - 2));
496 }
497 }
498 BOOST_LOG_TRIVIAL(debug) << "is NOT path";
499 return boost::filesystem::path();
500 }