We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04a27b0 commit 09c5249Copy full SHA for 09c5249
internal_filesystem/lib/mpos/fs_driver.py
@@ -79,10 +79,11 @@ def _fs_dir_open_cb(drv, path):
79
#print(f"_fs_dir_open_cb for path '{path}'")
80
try:
81
import os # for ilistdir()
82
- path = path.rstrip('/') # LittleFS handles trailing flashes fine, but vfs.VfsFat returns an [Errno 22] EINVAL
+ if path != "/":
83
+ path = path.rstrip('/') # LittleFS handles trailing flashes fine, but vfs.VfsFat returns an [Errno 22] EINVAL
84
return {'iterator' : os.ilistdir(path)}
85
except Exception as e:
- print(f"_fs_dir_open_cb exception: {e}")
86
+ print(f"_fs_dir_open_cb exception for path {path}: {e}")
87
return None
88
89
def _fs_dir_read_cb(drv, lv_fs_dir_t, buf, btr):
0 commit comments