MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / delete_list_file

Function delete_list_file

src/dir.c:263–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263unsigned int delete_list_file(file_info_t *file_info)
264{
265 unsigned int nbr=0;
266 struct td_list_head *file_walker = NULL;
267 struct td_list_head *file_walker_next = NULL;
268#ifndef DISABLED_FOR_FRAMAC
269 td_list_for_each_safe(file_walker,file_walker_next, &file_info->list)
270 {
271 file_info_t *tmp;
272 tmp=td_list_entry(file_walker, file_info_t, list);
273 free(tmp->name);
274 td_list_del(file_walker);
275 free(tmp);
276 nbr++;
277 }
278#endif
279 return nbr;
280}
281
282/*@
283 @ requires \valid_read(current_file);

Callers 14

askloc.cFile · 0.85
dir_partition_auxFunction · 0.85
copy_dirFunction · 0.85
repair_MFTFunction · 0.85
fat32_find_root_clusterFunction · 0.85
fat32_create_rootdirFunction · 0.85
analyse_dir_entries2Function · 0.85
photorec_dir_fatFunction · 0.85
fat_has_EFI_entryFunction · 0.85
ntfs_undelete_partFunction · 0.85

Calls 1

td_list_delFunction · 0.85

Tested by

no test coverage detected