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

Method realpath

lib/internal/vfs/provider.js:425–430  ·  view source on GitHub ↗

* Gets the real path by resolving symlinks. * @param {string} path The path * @param {object} [options] Options * @returns {Promise }

(path, options)

Source from the content-addressed store, hash-verified

423 * @returns {Promise<string>}
424 */
425 async realpath(path, options) {
426 // Default: return the path as-is (for providers without symlinks)
427 // First verify the path exists
428 await this.stat(path);
429 return path;
430 }
431
432 /**
433 * Gets the real path synchronously.

Callers 1

realpathFunction · 0.45

Calls 1

statMethod · 0.95

Tested by

no test coverage detected