Allow empty directories to be filtered