MCPcopy Create free account
hub / github.com/nodejs/node / stat

Method stat

lib/internal/vfs/providers/real.js:105–113  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

103 }
104
105 async stat(options) {
106 this.#checkClosed('fstat');
107 return new Promise((resolve, reject) => {
108 fs.fstat(this.#fd, options, (err, stats) => {
109 if (err) reject(err);
110 else resolve(stats);
111 });
112 });
113 }
114
115 truncateSync(len = 0) {
116 this.#checkClosed('ftruncate');

Callers 1

statMethod · 0.45

Calls 4

#checkClosedMethod · 0.95
fstatMethod · 0.80
rejectFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected