Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4faa3b8

Browse files
fs_driver.py: fix "Back" issue on VfsFat due to trailing slash
1 parentc4eece4 commit4faa3b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎internal_filesystem/lib/mpos/fs_driver.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def _fs_dir_open_cb(drv, path):
7979
#print(f"_fs_dir_open_cb for path '{path}'")
8080
try:
8181
importos# for ilistdir()
82+
path=path.rstrip('/')# LittleFS handles trailing flashes fine, but vfs.VfsFat returns an [Errno 22] EINVAL
8283
return {'iterator' :os.ilistdir(path)}
8384
exceptExceptionase:
8485
print(f"_fs_dir_open_cb exception:{e}")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp