esp8266/scripts/_boot: Mount block device on "" instead of "/".
"" 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').
This commit is contained in:
parent
5c1af60e19
commit
7d2c685544
@ -3,10 +3,10 @@ import builtins
|
|||||||
from flashbdev import bdev
|
from flashbdev import bdev
|
||||||
|
|
||||||
try:
|
try:
|
||||||
vfs = uos.VfsFat(bdev, "/")
|
vfs = uos.VfsFat(bdev, "")
|
||||||
except OSError:
|
except OSError:
|
||||||
import inisetup
|
import inisetup
|
||||||
inisetup.check_bootsec()
|
inisetup.check_bootsec()
|
||||||
uos.VfsFat.mkfs(bdev)
|
uos.VfsFat.mkfs(bdev)
|
||||||
vfs = uos.VfsFat(bdev, "/")
|
vfs = uos.VfsFat(bdev, "")
|
||||||
inisetup.wifi()
|
inisetup.wifi()
|
||||||
|
Loading…
Reference in New Issue
Block a user