| 31 | { |
| 32 | public: |
| 33 | explicit DirectoryReader(const std::string& path) |
| 34 | : dir_(opendir(path.c_str())) |
| 35 | { |
| 36 | if (!dir_) { |
| 37 | throw std::runtime_error("Could not read the contents of " + path); |
| 38 | } |
| 39 | }; |
| 40 | |
| 41 | ~DirectoryReader() |
| 42 | { |
nothing calls this directly
no outgoing calls
no test coverage detected