Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit f95e4e7

Browse files
committed
extmod/vfs_fat_misc: Remove dot-dirs filter since FatFS already does it.
1 parent 71df60c commit f95e4e7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

extmod/vfs_fat_misc.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ STATIC mp_obj_t mp_vfs_fat_ilistdir_it_iternext(mp_obj_t self_in) {
5252
// stop on error or end of dir
5353
break;
5454
}
55-
if (fn[0] == '.' && (fn[1] == 0 || (fn[1] == '.' && fn[2] == 0))) {
56-
// skip . and ..
57-
continue;
58-
}
55+
56+
// Note that FatFS already filters . and .., so we don't need to
5957

6058
// make 3-tuple with info about this entry
6159
mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(3, NULL));

0 commit comments

Comments
 (0)