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

Method shouldHandle

lib/internal/vfs/file_system.js:176–182  ·  view source on GitHub ↗

* Checks if a path should be handled by this VFS. * @param {string} inputPath The path to check (must be absolute & normalized) * @returns {boolean}

(inputPath)

Source from the content-addressed store, hash-verified

174 * @returns {boolean}
175 */
176 shouldHandle(inputPath) {
177 if (!this[kMounted] || !this[kMountPoint]) {
178 return false;
179 }
180 const normalized = isAbsolute(inputPath) ? inputPath : resolvePath(inputPath);
181 return isUnderMountPoint(normalized, this[kMountPoint]);
182 }
183
184 // ==================== Path Resolution ====================
185

Callers 9

findVFSForExistsFunction · 0.80
findVFSForPathFunction · 0.80
findVFSWithFunction · 0.80
checkSameVFSFunction · 0.80
lstatSyncFunction · 0.80
readlinkSyncFunction · 0.80
openAsBlobFunction · 0.80
lstatFunction · 0.80
readlinkFunction · 0.80

Calls 3

isAbsoluteFunction · 0.85
resolvePathFunction · 0.85
isUnderMountPointFunction · 0.85

Tested by

no test coverage detected