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

Method #getStats

lib/internal/vfs/watcher.js:105–111  ·  view source on GitHub ↗

* Gets stats for the watched path. * @returns {Stats|null} The stats or null if file doesn't exist

()

Source from the content-addressed store, hash-verified

103 * @returns {Stats|null} The stats or null if file doesn't exist
104 */
105 #getStats() {
106 try {
107 return this.#vfs.statSync(this.#path);
108 } catch {
109 return null;
110 }
111 }
112
113 /**
114 * Starts the polling timer.

Callers 3

constructorMethod · 0.95
#pollMethod · 0.95
statSyncMethod · 0.45

Calls 1

statSyncMethod · 0.45

Tested by

no test coverage detected