MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / listdir_abs_recursive

Function listdir_abs_recursive

tools/comdb2ar/util.cpp:145–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void listdir_abs_recursive(std::list<std::string>& output_list,
146 const std::string& dirname)
147// Populates output_list with the absolute path names of all the entries found
148// in directory dirname, which should be itself an absolute path. This will
149// follow non-symbolic subdirectories and include those too.
150{
151 listdir_internal(output_list, dirname, true,
152 dirname.empty() || dirname[dirname.length()-1] == '/' ? dirname
153 : dirname + "/");
154}
155
156
157ssize_t writeall(int fd, const void *buf, size_t nbytes)

Callers

nothing calls this directly

Calls 2

listdir_internalFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected