extmod/vfs_fat_misc: Remove dot-dirs filter since FatFS already does it.
This commit is contained in:
parent
71df60cf42
commit
f95e4e7782
@ -52,10 +52,8 @@ STATIC mp_obj_t mp_vfs_fat_ilistdir_it_iternext(mp_obj_t self_in) {
|
|||||||
// stop on error or end of dir
|
// stop on error or end of dir
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (fn[0] == '.' && (fn[1] == 0 || (fn[1] == '.' && fn[2] == 0))) {
|
|
||||||
// skip . and ..
|
// Note that FatFS already filters . and .., so we don't need to
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// make 3-tuple with info about this entry
|
// make 3-tuple with info about this entry
|
||||||
mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(3, NULL));
|
mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(3, NULL));
|
||||||
|
Loading…
Reference in New Issue
Block a user