MicroPython/uos.py

changeset 2
2c3f30af031d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MicroPython/uos.py	Sun Aug 25 19:25:37 2019 +0200
@@ -0,0 +1,77 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'uos' module.
+"""
+
+def uname():
+    pass
+
+def urandom(n):
+    pass
+
+def chdir(path):
+    pass
+
+def getcwd():
+    pass
+
+def ilistdir(dir="."):
+    pass
+
+def listdir(dir="."):
+    pass
+
+def mkdir(path):
+    pass
+
+def remove(path):
+    pass
+
+def rmdir(path):
+    pass
+
+def rename(old_path, new_path):
+    pass
+
+def stat(path):
+    pass
+
+def statvfs(path):
+    pass
+
+def sync():
+    pass
+
+def dupterm(stream_object, index=0):
+    pass
+
+def mount(fsobj, mount_point, *, readonly):
+    pass
+
+def umount(mount_point):
+    pass
+
+class VfsFat():
+    def __init__(self, block_dev):
+        pass
+    
+    @staticmethod
+    def mkfs(block_dev):
+        pass
+
+class AbstractBlockDev():
+    def __init__(self):
+        pass
+    
+    def readblocks(self, block_num, buf):
+        pass
+    
+    def writeblocks(self, block_num, buf):
+        pass
+    
+    def ioctl(self, op, arg):
+        pass

eric ide

mercurial