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 c4eece4 commit 4faa3b8Copy full SHA for 4faa3b8
internal_filesystem/lib/mpos/fs_driver.py
@@ -79,6 +79,7 @@ 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
83
return {'iterator' : os.ilistdir(path)}
84
except Exception as e:
85
print(f"_fs_dir_open_cb exception: {e}")
0 commit comments