Lines Matching defs:fileName
44 void RemoveFile(const std::string& fileName)
46 int fd = open(fileName.c_str(), O_RDONLY | O_NONBLOCK);
48 HILOG_WARN(LOG_CORE, "RemoveFile :: open file failed: %{public}s", fileName.c_str());
52 HILOG_WARN(LOG_CORE, "RemoveFile :: get file lock failed, skip remove: %{public}s", fileName.c_str());
56 if (remove(fileName.c_str()) == 0) {
57 HILOG_INFO(LOG_CORE, "RemoveFile :: Delete %{public}s success.", fileName.c_str());
59 HILOG_WARN(LOG_CORE, "RemoveFile :: Delete %{public}s failed.", fileName.c_str());
72 std::string fileName = entry.path().filename().string();
73 if (fileName.substr(0, TRACE_RECORDING_PREFIX.size()) == TRACE_RECORDING_PREFIX) {
74 if (stat((TRACE_DEFAULT_DIR + fileName).c_str(), &fileStat) == 0) {
75 fileList.push_back({fileName, fileStat.st_ctime});