MCPcopy Index your code
hub / github.com/nodejs/node / statSync

Method statSync

lib/internal/vfs/file_system.js:238–241  ·  view source on GitHub ↗

* Gets stats for a path synchronously. * @param {string} filePath The path to stat * @param {object} [options] Options * @returns {Stats}

(filePath, options)

Source from the content-addressed store, hash-verified

236 * @returns {Stats}
237 */
238 statSync(filePath, options) {
239 const providerPath = this.#toProviderPath(filePath);
240 return this[kProvider].statSync(providerPath, options);
241 }
242
243 /**
244 * Gets stats for a path synchronously without following symlinks.

Callers 1

fstatSyncMethod · 0.45

Calls 1

#toProviderPathMethod · 0.95

Tested by

no test coverage detected