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

Method realpathSync

lib/internal/vfs/providers/memory.js:899–908  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

897 }
898
899 realpathSync(path, options) {
900 const result = this.#lookupEntry(path, true, 0);
901 if (result.eloop) {
902 throw createELOOP('realpath', path);
903 }
904 if (!result.entry) {
905 throw createENOENT('realpath', path);
906 }
907 return result.resolvedPath;
908 }
909
910 async realpath(path, options) {
911 return this.realpathSync(path, options);

Callers 1

realpathMethod · 0.95

Calls 3

#lookupEntryMethod · 0.95
createELOOPFunction · 0.85
createENOENTFunction · 0.85

Tested by

no test coverage detected