MCPcopy
hub / github.com/vercel/hyper / getCachePath

Function getCachePath

bin/yarn-standalone.js:105697–105706  ·  view source on GitHub ↗
(fsPath)

Source from the content-addressed store, hash-verified

105695 const blacklistedLocations = new Set();
105696
105697 const getCachePath = function getCachePath(fsPath) {
105698 const cacheRelativePath = normalizePath(path.relative(config.cacheFolder, fsPath));
105699
105700 // if fsPath is not inside cacheRelativePath, we just skip it
105701 if (cacheRelativePath.match(/^\.\.\//)) {
105702 return null;
105703 }
105704
105705 return cacheRelativePath;
105706 };
105707
105708 const resolveOfflineCacheFolder = function resolveOfflineCacheFolder(fsPath) {
105709 if (!offlineCacheFolder) {

Callers 2

yarn-standalone.jsFile · 0.85

Calls 2

normalizePathFunction · 0.85
matchMethod · 0.80

Tested by

no test coverage detected