| 82 | } |
| 83 | |
| 84 | static Status MatchFiles(const string& patterns, |
| 85 | std::vector<string>* filenames) { |
| 86 | for (const auto& file_pattern : str_util::Split(patterns, ',')) { |
| 87 | std::vector<string> tmp_filenames; |
| 88 | TF_RETURN_IF_ERROR( |
| 89 | Env::Default()->GetMatchingPaths(file_pattern, &tmp_filenames)); |
| 90 | filenames->insert(filenames->end(), |
| 91 | std::make_move_iterator(tmp_filenames.begin()), |
| 92 | std::make_move_iterator(tmp_filenames.end())); |
| 93 | } |
| 94 | return Status::OK(); |
| 95 | } |
| 96 | |
| 97 | void RecordYielder::MainLoop() { |
| 98 | while (true) { |