Lines Matching defs:root

134  *  root?: string;
143 const dir = pathObject.dir || pathObject.root;
149 return dir === pathObject.root ? `${dir}${base}` : `${dir}${sep}${base}`;
184 // to our drive. If not, default to the drive's root.
199 // Try to match a root
207 // Possible UNC root
240 // We matched a UNC root
252 // Possible device root
314 // Try to match a root
321 // Possible UNC root
354 // We matched a UNC root only
355 // Return the normalized version of the UNC root since there
360 // We matched a UNC root with leftovers
372 // Possible device root
410 // Possible device root
545 // Compare paths to find the longest common path from root
571 // We get here if `from` is the device root.
583 // We get here if `to` is the device root.
629 // Possible UNC root
633 // Matched non-long UNC root, convert the path to a long UNC path
642 // Matched device root, convert the path to a long UNC path
668 // Try to match a root
670 // Possible UNC root
700 // We matched a UNC root only
704 // We matched a UNC root with leftovers
706 // Offset by 1 to include the separator after the UNC root to
707 // treat it as a "normal root" on top of a (UNC) root
713 // Possible device root
906 * root: string;
915 const ret = { root: '', dir: '', base: '', ext: '', name: '' };
927 ret.root = ret.dir = path;
933 // Try to match a root
935 // Possible UNC root
964 // We matched a UNC root only
967 // We matched a UNC root with leftovers
975 // Possible device root
977 // `path` contains just a drive root, exit early to avoid
979 ret.root = ret.dir = path;
985 // `path` contains just a drive root, exit early to avoid
987 ret.root = ret.dir = path;
994 ret.root = StringPrototypeSlice(path, 0, rootEnd);
1053 // If the directory is the root, use the entire root as the `dir` including
1059 ret.dir = ret.root;
1209 // Compare paths to find the longest common path from root
1228 // We get here if `from` is the root
1239 // We get here if `to` is the root.
1442 * root: string;
1451 const ret = { root: '', dir: '', base: '', ext: '', name: '' };
1458 ret.root = '/';