Allow filter to take dir path argument

to have different filters for different directories or filter by stat