File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ mp_obj_t mp_vfs_chdir(mp_obj_t path_in) {
261261 // subsequent relative paths begin at the root of that VFS.
262262 for (vfs = MP_STATE_VM (vfs_mount_table ); vfs != NULL ; vfs = vfs -> next ) {
263263 if (vfs -> len == 1 ) {
264- mp_obj_t root = mp_obj_new_str ( "/" , 1 , false );
264+ mp_obj_t root = MP_OBJ_NEW_QSTR ( MP_QSTR__slash_ );
265265 mp_vfs_proxy_call (vfs , MP_QSTR_chdir , 1 , & root );
266266 break ;
267267 }
@@ -318,7 +318,7 @@ STATIC mp_obj_t mp_vfs_ilistdir_it_iternext(mp_obj_t self_in) {
318318 self -> cur .vfs = vfs -> next ;
319319 if (vfs -> len == 1 ) {
320320 // vfs is mounted at root dir, delegate to it
321- mp_obj_t root = mp_obj_new_str ( "/" , 1 , false );
321+ mp_obj_t root = MP_OBJ_NEW_QSTR ( MP_QSTR__slash_ );
322322 self -> is_iter = true;
323323 self -> cur .iter = mp_vfs_proxy_call (vfs , MP_QSTR_ilistdir , 1 , & root );
324324 return mp_iternext (self -> cur .iter );
You can’t perform that action at this time.
0 commit comments