mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 23:51:37 +02:00
epee: ensure is_file_exist doesn't throw
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user