PyDocs

Nav

File and Directory Access

PurePath.drive

pathlib

attribute of PurePath (source)
The drive prefix (letter or UNC path), if any.
1 Example
>>> PureWindowsPath('c:/Program Files/').drive
'c:'
>>> PureWindowsPath('/Program Files/').drive
''
>>> PurePosixPath('/etc').drive
''
from the Python docs
See Also
No see-alsos for pathlib/PurePath.drive
0 Notes
No notes for PurePath.drive