diff --git a/contrib/epee/src/file_io_utils.cpp b/contrib/epee/src/file_io_utils.cpp index bd401f5c4..fcba7037c 100644 --- a/contrib/epee/src/file_io_utils.cpp +++ b/contrib/epee/src/file_io_utils.cpp @@ -63,8 +63,15 @@ namespace file_io_utils bool is_file_exist(const std::string& path) { - boost::filesystem::path p(path); - return boost::filesystem::exists(p); + try + { + boost::filesystem::path p(path); + return boost::filesystem::exists(p); + } + catch (...) + { + return false; + } }