PyDocs

Nav

File and Directory Access

Path.info

pathlib

attribute of Path · Added in 3.14 (source)
A PathInfo object that exposes the file type and other file attributes
of this path.
1 Example
>>> p = Path('src')
>>> if p.info.is_symlink():
...     print('symlink')
... elif p.info.is_dir():
...     print('directory')
... elif p.info.exists():
...     print('something else')
... else:
...     print('not found')
...
directory
from the Python docs
See Also
No see-alsos for pathlib/Path.info
0 Notes
No notes for Path.info