Introduction
Implementation of the CPython stat library.
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.
Installing to a Connected CircuitPython Device with Circup
Make sure that you have circup installed in your Python environment.
Install it with the following command if necessary:
pip3 install circup
With circup installed and your CircuitPython device connected use the
following command to install:
circup install stat
Or the following command to update an existing version:
circup update
Usage Example
from stat import *
path = "/lib"
st = os.stat(path)
print(S_ISDIR(st[ST_MODE]), filemode(st[ST_MODE]))
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Table of Contents
Examples
API Reference
- API Reference
statST_ATIMEST_CTIMEST_DEVST_GIDST_INOST_MODEST_MTIMEST_NLINKST_SIZEST_UIDS_IFBLKS_IFCHRS_IFDIRS_IFDOORS_IFIFOS_IFLNKS_IFMT()S_IFPORTS_IFREGS_IFSOCKS_IFWHTS_IMODE()S_ISBLK()S_ISCHR()S_ISDIR()S_ISDOOR()S_ISFIFO()S_ISLNK()S_ISPORT()S_ISREG()S_ISSOCK()S_ISWHT()filemode()stat()