Lines Matching refs:files
42 static int EliminateOpenFiles(const std::string& dirname, std::set<std::string>* files) { in EliminateOpenFiles() argument
70 if (files->erase(link) > 0) { in EliminateOpenFiles()
89 std::set<std::string> files; in FindExpendableFiles() local
107 files.insert(path); in FindExpendableFiles()
111 LOG(INFO) << files.size() << " regular files in deletable directory"; in FindExpendableFiles()
112 if (EliminateOpenFiles(dirname, &files) < 0) { in FindExpendableFiles()
116 return std::vector<std::string>(files.begin(), files.end()); in FindExpendableFiles()
202 std::vector<std::string> files; in RemoveFilesInDirectory() local
210 files = FindExpendableFiles(dirname, log_filter); in RemoveFilesInDirectory()
223 std::sort(files.begin(), files.end(), comparator); in RemoveFilesInDirectory()
226 files = FindExpendableFiles(dirname, nullptr); in RemoveFilesInDirectory()
229 for (const auto& file : files) { in RemoveFilesInDirectory()