prune dirlist before descending into sub-directories, rather than visiting lots of unwanted folders and filtering the results out later