correctly filtering for folders in filteredList