MCPcopy Index your code
hub / github.com/meteor/meteor / statOrNull

Function statOrNull

tools/cli/dev-bundle.js:143–163  ·  view source on GitHub ↗
(path, statMethod)

Source from the content-addressed store, hash-verified

141}
142
143function statOrNull(path, statMethod) {
144 try {
145 var stat = fs.statSync(path);
146 } catch (e) {
147 if (e.code !== "ENOENT") {
148 throw e;
149 }
150 }
151
152 if (stat) {
153 if (typeof statMethod === "string") {
154 if (stat[statMethod]()) {
155 return stat;
156 }
157 } else {
158 return stat;
159 }
160 }
161
162 return null;
163}
164
165function find(dir, predicate) {
166 var joinArgs = Array.prototype.slice.call(arguments, 2);

Callers 3

getDevBundleDirFunction · 0.70
getDevBundleForReleaseFunction · 0.70
makeStatTestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…