MCPcopy Index your code
hub / github.com/nodejs/node / #toMountedPath

Method #toMountedPath

lib/internal/vfs/file_system.js:209–214  ·  view source on GitHub ↗

* Converts a provider-relative path back to a mounted path. * If not mounted, returns the path as-is. * @param {string} providerPath The provider-relative path * @returns {string} The mounted path

(providerPath)

Source from the content-addressed store, hash-verified

207 * @returns {string} The mounted path
208 */
209 #toMountedPath(providerPath) {
210 if (this[kMounted] && this[kMountPoint]) {
211 return path.join(this[kMountPoint], providerPath);
212 }
213 return providerPath;
214 }
215
216 // ==================== FS Operations (Sync) ====================
217

Callers 4

realpathSyncMethod · 0.95
mkdtempSyncMethod · 0.95
realpathMethod · 0.95
toMountedPathMethod · 0.95

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected