7d2c685544
"" is the correct name of the root directory when mounting a device there (as opposed to "/"). One can now do os.listdir('/') and open('/abc'), as well as os.listdir() and open('abc').
13 lines
233 B
Python
13 lines
233 B
Python
import uos
|
|
import builtins
|
|
from flashbdev import bdev
|
|
|
|
try:
|
|
vfs = uos.VfsFat(bdev, "")
|
|
except OSError:
|
|
import inisetup
|
|
inisetup.check_bootsec()
|
|
uos.VfsFat.mkfs(bdev)
|
|
vfs = uos.VfsFat(bdev, "")
|
|
inisetup.wifi()
|