| 56 | FileSystemRegistry::~FileSystemRegistry() {} |
| 57 | |
| 58 | bool FileSystem::FilesExist(const std::vector<string>& files, |
| 59 | std::vector<Status>* status) { |
| 60 | bool result = true; |
| 61 | for (const auto& file : files) { |
| 62 | Status s = FileExists(file); |
| 63 | result &= s.ok(); |
| 64 | if (status != nullptr) { |
| 65 | status->push_back(s); |
| 66 | } else if (!result) { |
| 67 | // Return early since there is no need to check other files. |
| 68 | return false; |
| 69 | } |
| 70 | } |
| 71 | return result; |
| 72 | } |
| 73 | |
| 74 | Status FileSystem::DeleteRecursively(const string& dirname, |
| 75 | int64* undeleted_files, |
nothing calls this directly
no test coverage detected