stat

Stdlib — OS/FilePython 2.0+Intermediate

Interpret results of os.stat() (permissions, size, timestamps)

Quick Info

Documentation
Official Docs
Python Version
2.0+
Dependencies
None — Python Standard Library
Install
Included with Python

Learn by Difficulty

Quick Example

python
import stat

print(f"Module: stat")
print(f"Contents: {dir(stat)[:10]}")

The stat module is part of Python's standard library. Interpret results of os.stat() (permissions, size, timestamps).

Try in Playground

Tags

stdlibfile-iosystem