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

Function log_list_file

src/dir.c:234–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void log_list_file(const disk_t *disk, const partition_t *partition, const dir_data_t *dir_data, const file_info_t*list)
235{
236#ifndef DISABLED_FOR_FRAMAC
237 struct td_list_head *tmp;
238 log_partition(disk, partition);
239 if(dir_data!=NULL)
240 {
241 log_info("Directory %s\n",dir_data->current_directory);
242 }
243 td_list_for_each(tmp, &list->list)
244 {
245 char datestr[80];
246 char str[11];
247 const file_info_t *current_file=td_list_entry_const(tmp, const file_info_t, list);
248 if((current_file->status&FILE_STATUS_DELETED)!=0)
249 log_info("X");
250 else
251 log_info(" ");
252 set_datestr((char *)&datestr, sizeof(datestr), current_file->td_mtime);
253 mode_string(current_file->st_mode, str);
254 log_info("%7lu ",(unsigned long int)current_file->st_ino);
255 log_info("%s %5u %5u ",
256 str, (unsigned int)current_file->st_uid, (unsigned int)current_file->st_gid);
257 log_info("%9llu", (long long unsigned int)current_file->st_size);
258 log_info(" %s %s\n", datestr, current_file->name);
259 }
260#endif
261}
262
263unsigned int delete_list_file(file_info_t *file_info)
264{

Callers 1

ntfs_undelete_menuFunction · 0.85

Calls 4

log_partitionFunction · 0.85
set_datestrFunction · 0.85
mode_stringFunction · 0.85
td_list_for_eachFunction · 0.70

Tested by

no test coverage detected