Home | History | Annotate | Download | only in Lib

Lines Matching full:drive

102                 # Same drive in different case
118 # Split a path in a drive specification (a drive letter followed by a
122 """Split a pathname into drive/UNC sharepoint and relative path specifiers.
130 If the path contained a drive letter, drive_or_unc will contain everything
137 Paths cannot contain both a drive letter and a UNC path.
153 # vvvvvvvvvvvvvvvvvvvv drive letter or UNC path
182 Paths containing drive letters never have a UNC part.
187 drive, path = splitdrive(p)
188 if len(drive) == 2:
189 # Drive letter present
191 return drive, path
268 # Any drive letter root (eg c:\)
273 # detected drive letter roots and share UNCs. The canonical approach to
275 # common case: drive letter roots. The alternative which uses GetVolumePathName
276 # fails if the drive letter is the result of a SUBST.
282 """Test whether a path is a mount point (a drive root, the root of a
331 drive = os.environ['HOMEDRIVE']
333 drive = ''
334 userhome = join(drive, os.environ['HOMEPATH'])
640 # Check that all drive letters or UNC paths match. The check is made only
644 raise ValueError("Paths don't have the same drive")
646 drive, path = splitdrive(paths[0].replace(altsep, sep))
660 prefix = drive + sep if isabs else drive