MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / ReadDir

Function ReadDir

libi2pd/FS.cpp:235–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 }
234
235 bool ReadDir(const std::string & path, std::vector<std::string> & files) {
236 if (!fs_lib::exists(path))
237 return false;
238 fs_lib::directory_iterator it(path);
239 fs_lib::directory_iterator end;
240
241 for ( ; it != end; it++) {
242 if (!fs_lib::is_regular_file(it->status()))
243 continue;
244 files.push_back(it->path().string());
245 }
246
247 return true;
248 }
249
250 bool Exists(const std::string & path) {
251 return fs_lib::exists(path);

Callers 4

ReadTunnelsMethod · 0.85
LoadCertificatesMethod · 0.85
CleanUpTagsFilesFunction · 0.85
LoadCertificatesMethod · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected