MCPcopy Index your code
hub / github.com/nodejs/node / #getStatsFor

Method #getStatsFor

lib/internal/vfs/watcher.js:234–240  ·  view source on GitHub ↗

* Gets stats for a specific path. * @param {string} filePath The file path * @returns {Stats|null}

(filePath)

Source from the content-addressed store, hash-verified

232 * @returns {Stats|null}
233 */
234 #getStatsFor(filePath) {
235 try {
236 return this.#vfs.statSync(filePath);
237 } catch {
238 return null;
239 }
240 }
241
242 /**
243 * Builds the list of files to track for recursive watching.

Callers 5

#pollDirectoryMethod · 0.95
#rescanChildrenMethod · 0.95
#rescanRecursiveMethod · 0.95
#buildFileListMethod · 0.95
#buildChildListMethod · 0.95

Calls 1

statSyncMethod · 0.45

Tested by

no test coverage detected