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 71df60c commit f95e4e7Copy full SHA for f95e4e7
extmod/vfs_fat_misc.c
@@ -52,10 +52,8 @@ STATIC mp_obj_t mp_vfs_fat_ilistdir_it_iternext(mp_obj_t self_in) {
52
// stop on error or end of dir
53
break;
54
}
55
- if (fn[0] == '.' && (fn[1] == 0 || (fn[1] == '.' && fn[2] == 0))) {
56
- // skip . and ..
57
- continue;
58
- }
+
+ // Note that FatFS already filters . and .., so we don't need to
59
60
// make 3-tuple with info about this entry
61
mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(3, NULL));
0 commit comments