posixpathsplitdrive
posixpathsplitdrive refers to the splitdrive function in Python's posixpath module, which provides POSIX-style path operations as part of the standard library. The posixpath module implements common path manipulation functions for POSIX-compatible file systems and is used by os.path on POSIX platforms.
splitdrive is designed to split a pathname into two parts: a drive component and the remainder of
The function takes a single argument, the path string, and returns a tuple (drive, path). For POSIX
Relation to other path functions
splitdrive is part of the same family as other path manipulation utilities in posixpath, such as join,
- posixpath.splitdrive('/usr/local/bin') returns ('', '/usr/local/bin')
- posixpath.splitdrive('relative/path') returns ('', 'relative/path')
Since there is no drive concept in POSIX, neither absolute nor relative paths gain a drive prefix