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

Method realpathSync

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

Source from the content-addressed store, hash-verified

191 return promise;
192 }
193 realpathSync(path) {
194 const cached = this.#realpathCache.get(path);
195 if (cached && !(cached instanceof Promise)) {
196 return cached;
197 }
198 let val;
199 try {
200 val = realpathSync(path);
201 } catch {
202 val = null;
203 }
204 this.#realpathCache.set(path, val);
205 return val;
206 }
207 addToStatCache(path, val) {
208 this.#statsCache.set(path, val);
209 }

Callers 15

realpathSyncFunction · 0.45
fs.jsFile · 0.45
toRealPathFunction · 0.45
loadPackageMapFunction · 0.45
finalizeResolutionFunction · 0.45
#nextRealpathsSyncMethod · 0.45
#isCyclicSyncMethod · 0.45
mainFunction · 0.45
tmpdir.jsFile · 0.45

Calls 3

getMethod · 0.65
realpathSyncFunction · 0.50
setMethod · 0.45

Tested by 1

testFunction · 0.36