MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / glob2

Function glob2

utility/glob.cpp:351–360  ·  view source on GitHub ↗

This helper function recursively yields relative pathnames inside a literal directory.

Source from the content-addressed store, hash-verified

349// This helper function recursively yields relative pathnames inside a literal
350// directory.
351Vector<String> glob2(const String &dirname, [[maybe_unused]] const String &pattern,
352 bool dironly, bool include_hidden) {
353 // std::cout << "In glob2\n";
354 Vector<String> result = rlistdir(dirname, dironly, include_hidden);
355 //assert(is_recursive(pattern));
356 if (dironly) {
357 result.push_back(dirname);
358 }
359 return result;
360}
361
362// These 2 helper functions non-recursively glob inside a literal directory.
363// They return a list of basenames. _glob1 accepts a pattern while _glob0

Callers 1

_globMethod · 0.85

Calls 2

rlistdirFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected