Commit 6c27e71
authored
fs_driver.py: fix _fs_dir_open_cb for VfsFat
While testing with an SD card that has a FAT filesystem on it, I noticed that, unlike LittleFS, VfsFat returns an [Errno 22] EINVAL when a directory has a trailing slash.
This fix removes the trailing slash, except for the root directory.1 parent 75f596c commit 6c27e71
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
0 commit comments