We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 619c593 commit 244edbcCopy full SHA for 244edbc
python-stdlib/os/os/__init__.py
@@ -1 +1,10 @@
1
+import uos
2
from uos import *
3
+from collections import namedtuple
4
+
5
+# https://docs.python.org/3/library/os.html#os.stat_result
6
+stat_result = namedtuple("stat_result", ("st_mode", "st_ino", "st_dev", "st_nlink", "st_uid", "st_gid", "st_size", "st_atime", "st_mtime", "st_ctime"))
7
8
9
+def stat(path):
10
+ return stat_result(*uos.stat(path))
0 commit comments