Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
f95e4e77
Commit
f95e4e77
authored
May 13, 2017
by
Damien George
Browse files
extmod/vfs_fat_misc: Remove dot-dirs filter since FatFS already does it.
parent
71df60cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
extmod/vfs_fat_misc.c
View file @
f95e4e77
...
...
@@ -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
break
;
}
if
(
fn
[
0
]
==
'.'
&&
(
fn
[
1
]
==
0
||
(
fn
[
1
]
==
'.'
&&
fn
[
2
]
==
0
)))
{
// skip . and ..
continue
;
}
// Note that FatFS already filters . and .., so we don't need to
// make 3-tuple with info about this entry
mp_obj_tuple_t
*
t
=
MP_OBJ_TO_PTR
(
mp_obj_new_tuple
(
3
,
NULL
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment