Lines Matching refs:paths
99 # Absolute: UNC, device, and paths with a drive and root.
106 # Join two (or more) paths.
107 def join(path, *paths):
118 if not paths:
121 for p in map(os.fspath, paths):
147 genericpath._check_arg_types('join', path, *paths)
310 # Expand paths beginning with '~' or '~user'.
367 # Expand paths containing shell variable substitutions.
715 # For UNC paths, the prefix will actually be \\?\UNC\
787 # Return the longest common sub-path of the sequence of paths given as input.
789 # only difference between two paths is the use of '\' versus '/' as separator,
793 # given paths had the alternative '/' separator) and will have the case of the
797 def commonpath(paths):
800 if not paths:
803 paths = tuple(map(os.fspath, paths))
804 if isinstance(paths[0], bytes):
814 drivesplits = [splitdrive(p.replace(altsep, sep).lower()) for p in paths]
820 raise ValueError("Can't mix absolute and relative paths") from None
822 # Check that all drive letters or UNC paths match. The check is made only
828 drive, path = splitdrive(paths[0].replace(altsep, sep))
845 genericpath._check_arg_types('commonpath', *paths)