filter directories and patterns