Skip to content

Commit 7d2c685

Browse files
committed
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').
1 parent 5c1af60 commit 7d2c685

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

esp8266/scripts/_boot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from flashbdev import bdev
44

55
try:
6-
vfs = uos.VfsFat(bdev, "/")
6+
vfs = uos.VfsFat(bdev, "")
77
except OSError:
88
import inisetup
99
inisetup.check_bootsec()
1010
uos.VfsFat.mkfs(bdev)
11-
vfs = uos.VfsFat(bdev, "/")
11+
vfs = uos.VfsFat(bdev, "")
1212
inisetup.wifi()

0 commit comments

Comments
 (0)