PurePath.parents
An immutable sequence providing access to the logical ancestors of the path:
1 2 3 4 5 6 7 | >>> p = PureWindowsPath( 'c:/foo/bar/setup.py' ) >>> p.parents[0] PureWindowsPath( 'c:/foo/bar' ) >>> p.parents[1] PureWindowsPath( 'c:/foo' ) >>> p.parents[2] PureWindowsPath( 'c:/' ) |
Please login to continue.