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

Method realpath

lib/internal/fs/glob.js:184–192  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

182 return val;
183 }
184 realpath(path) {
185 const cached = this.#realpathCache.get(path);
186 if (cached) {
187 return cached;
188 }
189 const promise = PromisePrototypeThen(realpath(path), null, () => null);
190 this.#realpathCache.set(path, promise);
191 return promise;
192 }
193 realpathSync(path) {
194 const cached = this.#realpathCache.get(path);
195 if (cached && !(cached instanceof Promise)) {

Callers 15

configure_section_fileFunction · 0.45
make_bin_overrideFunction · 0.45
filesFunction · 0.45
sitecustomize.pyFile · 0.45
_CopyXIBFileMethod · 0.45
RelativePathFunction · 0.45
fs.jsFile · 0.45
realpathFunction · 0.45
#nextRealpathsMethod · 0.45
#isCyclicMethod · 0.45
realpathFunction · 0.45
relativePathFunction · 0.45

Calls 3

realpathFunction · 0.70
getMethod · 0.65
setMethod · 0.45

Tested by 1

testFunction · 0.36