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

Method lstat

lib/internal/vfs/file_system.js:698–706  ·  view source on GitHub ↗

* Gets stats without following symlinks asynchronously. * @param {string} filePath The path to stat * @param {object|Function} [options] Options or callback * @param {Function} [callback] Callback (err, stats)

(filePath, options, callback)

Source from the content-addressed store, hash-verified

696 * @param {Function} [callback] Callback (err, stats)
697 */
698 lstat(filePath, options, callback) {
699 if (typeof options === 'function') {
700 callback = options;
701 options = undefined;
702 }
703
704 this[kProvider].lstat(this.#toProviderPath(filePath), options)
705 .then((stats) => callback(null, stats), (err) => callback(err));
706 }
707
708 /**
709 * Reads directory contents asynchronously.

Callers 1

rmMethod · 0.45

Calls 3

#toProviderPathMethod · 0.95
callbackFunction · 0.50
thenMethod · 0.45

Tested by

no test coverage detected