Skip to content
Snippets Groups Projects
Commit 69ac2434 authored by Anon's avatar Anon
Browse files

mypystubs: document uos.stat

parent 1a811ce1
No related branches found
No related tags found
No related merge requests found
``uos`` module
===============
.. automodule:: uos
:members:
:undoc-members:
:member-order: bysource
...@@ -30,6 +30,7 @@ Welcome to flow3r's documentation! ...@@ -30,6 +30,7 @@ Welcome to flow3r's documentation!
api/captouch.rst api/captouch.rst
api/ctx.rst api/ctx.rst
api/leds.rst api/leds.rst
api/uos.rst
api/sys_buttons.rst api/sys_buttons.rst
api/sys_display.rst api/sys_display.rst
api/sys_kernel.rst api/sys_kernel.rst
......
from typing import NewType
StatStruct = NewType(
"StatStruct", tuple[int, int, int, int, int, int, int, int, int, int]
)
def stat(path: str) -> StatStruct:
"""
Get the status of a file or directory.
Returns a tuple with 10 elements:
- st_mode
- st_ino
- st_dev
- st_nlink
- sb.st_uid
- sb.st_gid
- sb.st_size
- sb.st_atime
- sb.st_mtime
- sb.st_ctime
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment