文件处理提示优化

This commit is contained in:
龙仨
2024-05-06 18:13:33 +08:00
parent 12a16457fa
commit cdffe09c31
-3
View File
@@ -808,7 +808,6 @@ bool File::IsExist(std::string_view path_name)
{
if (path_name.empty())
{
log_err("路径为空!");
return false;
}
try
@@ -818,11 +817,9 @@ bool File::IsExist(std::string_view path_name)
}
catch (std::filesystem::filesystem_error& e)
{
log_err("{}", e.what());
}
catch (...)
{
log_err("未知异常!");
}
return false;
}