Lines Matching defs:tmpPath
475 static void LogTmpDirClear(const char *tmpPath)
480 DIR *dir = opendir(tmpPath);
482 tloge("open dir %s failed, errno:%d\n", tmpPath, errno);
494 "%s/%s", tmpPath, de->d_name);
505 ret = rmdir(tmpPath);
507 tloge("clear %s failed, err:%d, errno:%d\n", tmpPath, ret, errno);
511 static int32_t MkdirTmpPath(const char *tmpPath)
516 ret = rmdir(tmpPath);
520 LogTmpDirClear(tmpPath);
523 ret = mkdir(tmpPath, TLOGCAT_FILE_MODE);
525 tloge("mkdir %s failed, errno:%d\n", tmpPath, errno);