Lines Matching refs:path
81 const path = require('path');
788 const path = this.pathname;
789 if (path.length > 0) {
791 const out = new URL(path);
1408 path: `${pathname || ''}${search || ''}`,
1437 // If hostname is set, then we have a UNC path
1445 // Otherwise, it's a local path that requires a drive letter
1473 function fileURLToPath(path) {
1474 if (typeof path === 'string')
1475 path = new URL(path);
1476 else if (!isURL(path))
1477 throw new ERR_INVALID_ARG_TYPE('path', ['string', 'URL'], path);
1478 if (path.protocol !== 'file:')
1480 return isWindows ? getPathFromURLWin32(path) : getPathFromURLPosix(path);
1483 // The following characters are percent-encoded when converting from file path
1520 // UNC path format: \\server\share\resource
1524 'path',
1526 'Missing UNC resource path',
1531 'path',
1542 let resolved = path.resolve(filepath);
1543 // path.resolve strips trailing slashes so we must add them back
1548 resolved[resolved.length - 1] !== path.sep)