INNER CODE UNIT · JavaScript
resolvedAbsolute
mx-space/core · apps/admin/polyfills/packages/path/index.js:110
resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/
}
// At this point the path should be resolved to a full absolute path, but
// handle relative paths to be safe (might happen when process.cwd() fails)
// Normalize the path
resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute)
if (resolvedAbsolute) {
if (resolvedPath.length > 0) return `/${resolvedPath}`
else return '/'
} else if (resolvedPath.length > 0) {
return resolvedPath
} else {
return '.'
}
},