- case SIMCALL_FILE_STAT:
- simcall->file_stat.result = 0;
- s_file_stat_t *dst = &(simcall->file_stat.buf);
- s_file_stat_t *src = &((action->io.surf_io)->stat);
- file_stat_copy(src,dst);
- break;
- case SIMCALL_FILE_UNLINK:
- xbt_free(simcall->file_unlink.fd);
- simcall->file_unlink.result = 0;
+
+ case SIMCALL_FILE_LS:
+// xbt_dict_foreach((action->io.surf_io)->ls_dict,cursor,key, src){
+// // if there is a stat we have to duplicate it
+// if(src){
+// dst = xbt_new0(s_file_stat_t,1);
+// file_stat_copy(src, dst);
+// xbt_dict_set((action->io.surf_io)->ls_dict,key,dst,xbt_free);
+// }
+// }
+ simcall_file_ls__set__result(simcall, (action->io.surf_io)->ls_dict);