Match-id-f7cdfc7a411976f9681dbea6a0d794378ec36d97

This commit is contained in:
BianTanggui
2020-08-11 12:00:52 +08:00
parent fe9f73054c
commit 12c4bbd54a
9 changed files with 130 additions and 11 deletions

View File

@@ -42,11 +42,9 @@ int CheckDirExists(const char *dir)
{
DIR *ptr = opendir(dir);
if (NULL == ptr) {
LogError("path %s not exist.", dir);
return -1;
}
LogInfo("path %s exist.", dir);
closedir(ptr);
return 0;
}