文件处理提示优化
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user