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

Method readlinkSync

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

Source from the content-addressed store, hash-verified

855 }
856
857 readlinkSync(path, options) {
858 const normalized = this.#normalizePath(path);
859 const entry = this.#getEntry(normalized, 'readlink', false);
860
861 if (!entry.isSymbolicLink()) {
862 throw createEINVAL('readlink', path);
863 }
864
865 return entry.target;
866 }
867
868 async readlink(path, options) {
869 return this.readlinkSync(path, options);

Callers 1

readlinkMethod · 0.95

Calls 4

#normalizePathMethod · 0.95
#getEntryMethod · 0.95
createEINVALFunction · 0.85
isSymbolicLinkMethod · 0.45

Tested by

no test coverage detected