PERIPH_MATCH_PATH
match_pat->flags = PERIPH_MATCH_PATH | PERIPH_MATCH_TARGET |
if (((cur_pattern->flags & PERIPH_MATCH_PATH) != 0)
p->flags = PERIPH_MATCH_PATH | PERIPH_MATCH_NAME | PERIPH_MATCH_TARGET;
p->flags = PERIPH_MATCH_PATH | PERIPH_MATCH_NAME;