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

Function copy_done

src/dirn.c:83–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83static void copy_done(WINDOW *window, const unsigned int copy_ok, const unsigned int copy_bad, const copy_dir_t copy_stopped)
84{
85 wmove(window,5,0);
86 wclrtoeol(window);
87 if(has_colors())
88 {
89 if(copy_bad > 0)
90 wbkgdset(window,' ' | A_BOLD | COLOR_PAIR(1));
91 else
92 wbkgdset(window,' ' | A_BOLD | COLOR_PAIR(2));
93 }
94 if(copy_stopped == CD_STOPPED)
95 wprintw(window,"Copy stopped! %u ok, %u failed", copy_ok, copy_bad);
96 else if(copy_stopped == CD_NOSPACE)
97 wprintw(window,"Copy stopped! %u ok, %u failed - Not enough space", copy_ok, copy_bad);
98 else
99 wprintw(window,"Copy done! %u ok, %u failed", copy_ok, copy_bad);
100 if(has_colors())
101 wbkgdset(window,' ' | COLOR_PAIR(0));
102 wrefresh(window);
103}
104
105static long int dir_aff_ncurses(disk_t *disk, const partition_t *partition, dir_data_t *dir_data, file_info_t*dir_list, const unsigned long int inode, const unsigned int depth)
106{

Callers 1

dir_aff_ncursesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected