MCPcopy Create free account
hub / github.com/bloomberg/pystack / DirectoryReader

Method DirectoryReader

src/pystack/_pystack/process.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected