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

Method realpathSync

lib/internal/vfs/file_system.js:380–384  ·  view source on GitHub ↗

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

(filePath, options)

Source from the content-addressed store, hash-verified

378 * @returns {string}
379 */
380 realpathSync(filePath, options) {
381 const providerPath = this.#toProviderPath(filePath);
382 const realProviderPath = this[kProvider].realpathSync(providerPath, options);
383 return this.#toMountedPath(realProviderPath);
384 }
385
386 /**
387 * Reads the target of a symbolic link.

Callers

nothing calls this directly

Calls 2

#toProviderPathMethod · 0.95
#toMountedPathMethod · 0.95

Tested by

no test coverage detected