epee: ensure is_file_exist doesn't throw

This commit is contained in:
jpk68
2026-08-10 17:42:29 -04:00
parent ab3cb76bfb
commit 52d19aca49
+9 -2
View File
@@ -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;
}
}