mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 03:47:05 -05:00
Completes filtering with patterns.
This commit is contained in:
parent
a70eb4ed2b
commit
bd80df19ac
3 changed files with 37 additions and 8 deletions
9
state.c
9
state.c
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue