Ameba MicroPython: [RTL8722CSM] [RTL8722DM] SD File System

API Documents
Constructors
sdfs
Create a sdfs object and configure it to the given mode. This then allows you to navigate through the SD card and read/write files as you see.
Methods
sdfs.listdir()
This method listing the files and folders under current path.
sdfs.mkdir(“folder name[required]”)
This method attempts to create a folder under current path.
sdfs.chdir(“folder name[required]”)
This method change directory to a folder.
sdfs.pwd()
This method is to print out present working directory (current path).
sdfs.chdir(“/”)
This method is to change directory path to root directory.
sdfs.rm(“folder name[required]”)
This method is to delete a folder.
sdfs.create(“file name[required]”)
This method is to create a file.
sdfs.write(“file name[required]”)
This method is to write a string to a file.
sdfs.read(“file name[required]”)
This method is to read the content from a file.
sdfs.rm(“file name[required]”)
This method is to delete the file.
Copyrights ©瑞晟微电子(苏州)有限公司 2021. All rights reserved.
请先确认已安装QQ通讯软体