diff options
author | Tom Collins <tom.collins@digi.com> | 2018-03-08 16:02:26 -0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-03-12 12:26:36 +1100 |
commit | 4d3a92c67c9b1550eaf07d06ed74de996ee8fa3b (patch) | |
tree | ed0c98b17d40ac5c738d7a668dc2a6b80ec5baea /extmod/vfs.c | |
parent | 1345093401ed0812aa72dc5206cb8fd5fe61917f (diff) |
extmod/vfs_fat: Add file size as 4th element of uos.ilistdir tuple.
Diffstat (limited to 'extmod/vfs.c')
-rw-r--r-- | extmod/vfs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/extmod/vfs.c b/extmod/vfs.c index 105a80a8d..0585de1c7 100644 --- a/extmod/vfs.c +++ b/extmod/vfs.c @@ -366,9 +366,7 @@ mp_obj_t mp_vfs_listdir(size_t n_args, const mp_obj_t *args) { mp_obj_t dir_list = mp_obj_new_list(0, NULL); mp_obj_t next; while ((next = mp_iternext(iter)) != MP_OBJ_STOP_ITERATION) { - mp_obj_t *items; - mp_obj_get_array_fixed_n(next, 3, &items); - mp_obj_list_append(dir_list, items[0]); + mp_obj_list_append(dir_list, mp_obj_subscr(next, MP_OBJ_NEW_SMALL_INT(0), MP_OBJ_SENTINEL)); } return dir_list; } |