PyDocs

Nav

File and Directory Access

Path.stat

pathlib

method of Path (source)
  • Path.stat(*, follow_symlinks=True)
Return the result of the stat() system call on this path, like
os.stat() does.
Changed in 3.10
  • 3.10: The follow_symlinks parameter was added.
1 Example
>>> p = Path('setup.py')
>>> p.stat().st_size
956
>>> p.stat().st_mtime
1327883547.852554
from the Python docs
See Also
No see-alsos for pathlib/Path.stat
0 Notes
No notes for Path.stat