PyDocs

Nav

File and Directory Access

PurePath.parts

pathlib

attribute of PurePath (source)
An object providing sequence-like access to the
components in the filesystem path.
1 Example
>>> p = PurePath('/usr/bin/python3')
>>> p.parts
('/', 'usr', 'bin', 'python3')

>>> p = PureWindowsPath('c:/Program Files/PSF')
>>> p.parts
('c:\\', 'Program Files', 'PSF')
from the Python docs
See Also
No see-alsos for pathlib/PurePath.parts
0 Notes
No notes for PurePath.parts