Output checking info when query_file_exist

This commit is contained in:
Aoran Zeng
2024-06-13 00:39:31 +08:00
parent 77830a96ed
commit b86e89ae22
2 changed files with 29 additions and 9 deletions

View File

@@ -80,6 +80,22 @@ query_program_exist (char *check_cmd, char *prog_name)
}
bool
query_file_exist (char *path)
{
if (xy_file_exist (path))
{
chsrc_check_remarkably (path, "文件", false);
return true;
}
else
{
chsrc_check_remarkably (path, "文件", false);
return false;
}
}
/**
* 用于 _setsrc 函数检测用户输入的镜像站code是否存在于该target可用源中
*