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

Method statSync

lib/internal/vfs/file_handle.js:657–663  ·  view source on GitHub ↗

* Gets file stats synchronously. * @param {object} [options] Options * @returns {Stats}

(options)

Source from the content-addressed store, hash-verified

655 * @returns {Stats}
656 */
657 statSync(options) {
658 this.#checkClosed('fstat');
659 if (this.#getStats) {
660 return this.#getStats(this.#size);
661 }
662 throw new ERR_INVALID_STATE('stats not available');
663 }
664
665 /**
666 * Gets file stats.

Callers 1

statMethod · 0.95

Calls 2

#checkClosedMethod · 0.95
#getStatsMethod · 0.45

Tested by

no test coverage detected