Completes filtering with patterns.

This commit is contained in:
Andrea Mazzoleni 2011-03-30 17:02:02 +02:00
parent a70eb4ed2b
commit bd80df19ac
3 changed files with 37 additions and 8 deletions

View file

@ -523,10 +523,7 @@ void state_filter(struct snapraid_state* state, tommy_list* filterlist)
tommy_node* k;
for(k=tommy_list_head(filterlist);k!=0;k=k->next) {
struct snapraid_filter* filter = k->data;
printf("\t");
if (filter->is_path)
printf("/");
printf("%s", filter->pattern);
printf("\t%s", filter->pattern);
if (filter->is_dir)
printf("/");
printf("\n");
@ -556,6 +553,10 @@ void state_filter(struct snapraid_state* state, tommy_list* filterlist)
break;
}
}
if (state->verbose && !file->is_filtered) {
printf("Processing file '%s'\n", file->sub);
}
}
}
}