MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / grepDirectory

Function grepDirectory

source/utility/map_grep.cpp:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void grepDirectory(SearchParameters const& search, String directory) {
70 for (pair<String, bool> entry : File::dirList(directory)) {
71 if (entry.second)
72 grepDirectory(search, File::relativeTo(directory, entry.first));
73 else if (entry.first.endsWith(MapFilenameSuffix))
74 grepMap(search, File::relativeTo(directory, entry.first));
75 }
76}
77
78void grepPath(SearchParameters const& search, String path) {
79 if (File::isFile(path)) {

Callers 1

grepPathFunction · 0.85

Calls 2

grepMapFunction · 0.85
endsWithMethod · 0.45

Tested by

no test coverage detected