mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-12 15:10:04 +08:00
Match-id-f7cdfc7a411976f9681dbea6a0d794378ec36d97
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user