not_in = 0;
if(show_progress) {
- fprintf(stderr, "Scanning %s ... ", dirname1);
+ fprintf(stderr, "Scanning '%s' ... ", dirname1);
}
list1 = scan_directory(0, dirname1);
list1_length = file_list_length(list1);
+ if(show_progress) {
+ fprintf(stderr, "done (%d file%s).\n",
+ list1_length, (list1_length > 1 ? "s" : ""));
+ }
+
if(dirname2) {
if(strncmp(dirname2, "not:", 4) == 0) {
not_in = 1;
dirname2 += 4;
}
if(show_progress) {
- fprintf(stderr, "%s ... ", dirname2);
+ fprintf(stderr, "Scanning '%s' ... ", dirname2);
}
list2 = scan_directory(0, dirname2);
+ if(show_progress) {
+ list2_length = file_list_length(list2);
+ fprintf(stderr, "done (%d file%s).\n",
+ list2_length, (list2_length > 1 ? "s" : ""));
+ }
} else {
list2 = list1;
}
if(show_progress) {
- fprintf(stderr, "done.\n");
- fprintf(stderr,
- "%s: %d file%s.\n",
- dirname1, list1_length, (list1_length > 1 ? "s" : ""));
- if(dirname2) {
- list2_length = file_list_length(list2);
- fprintf(stderr,
- "%s: %d file%s.\n",
- dirname2, list2_length, (list2_length > 1 ? "s" : ""));
- }
- fprintf(stderr, "Now looking for identical files.\n");
+ fprintf(stderr, "Now looking for identical files (this may take a while).\n");
}
nb_groups = 0;