MCPcopy
hub / github.com/meteor/meteor / find

Function find

tools/cli/dev-bundle.js:165–182  ·  view source on GitHub ↗
(dir, predicate)

Source from the content-addressed store, hash-verified

163}
164
165function find(dir, predicate) {
166 var joinArgs = Array.prototype.slice.call(arguments, 2);
167 joinArgs.unshift(null);
168
169 while (true) {
170 joinArgs[0] = dir;
171 var joined = path.join.apply(path, joinArgs);
172 if (predicate(joined)) {
173 return joined;
174 }
175
176 var parentDir = path.dirname(dir);
177 if (parentDir === dir) break;
178 dir = parentDir;
179 }
180
181 return null;
182}
183
184function makeStatTest(method) {
185 return function (file) {

Callers 2

getDevBundleDirFunction · 0.70
getDevBundleForReleaseFunction · 0.70

Calls 2

callMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…