MicroPython/uos.py

Sun, 25 Aug 2019 19:25:37 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 25 Aug 2019 19:25:37 +0200
changeset 2
2c3f30af031d
permissions
-rw-r--r--

Started to add the stubs for MicroPython.

# -*- 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