From 7d2c685544bba08ea5f027d674f35bc0f4bc9a54 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 14 Apr 2016 22:56:21 +0100 Subject: [PATCH] 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'). --- esp8266/scripts/_boot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esp8266/scripts/_boot.py b/esp8266/scripts/_boot.py index 104034fb25..2b261fb475 100644 --- a/esp8266/scripts/_boot.py +++ b/esp8266/scripts/_boot.py @@ -3,10 +3,10 @@ import builtins from flashbdev import bdev try: - vfs = uos.VfsFat(bdev, "/") + vfs = uos.VfsFat(bdev, "") except OSError: import inisetup inisetup.check_bootsec() uos.VfsFat.mkfs(bdev) - vfs = uos.VfsFat(bdev, "/") + vfs = uos.VfsFat(bdev, "") inisetup.wifi()