Browse Source

update moduos_file.c

SummerGift 8 years ago
parent
commit
bec52cb366
1 changed files with 3 additions and 3 deletions
  1. 3 3
      port/moduos_file.c

+ 3 - 3
port/moduos_file.c

@@ -97,7 +97,7 @@ mp_obj_t mp_vfs_remove(uint n_args, const mp_obj_t *arg) {
     }
     for (index = 0; index < n_args; index++) {
         //rt_kprintf("Remove %s.\n", mp_obj_str_get_str(arg[index]));
-        unlink(mp_obj_str_get_str(arg[index]));
+        rm(mp_obj_str_get_str(arg[index]));
     }
     // TODO
     return mp_const_none;
@@ -117,8 +117,8 @@ mp_obj_t mp_vfs_rmdir(uint n_args, const mp_obj_t *arg) {
         return mp_const_none;
     }
     for (index = 0; index < n_args; index++) {
-        rt_kprintf("Remove %s.\n", mp_obj_str_get_str(arg[index]));
-        unlink(mp_obj_str_get_str(arg[index]));
+        //rt_kprintf("Remove %s.\n", mp_obj_str_get_str(arg[index]));
+        rmdir(mp_obj_str_get_str(arg[index]));
     }
     // TODO
     return mp_const_none;