Add a filter to search only files or only directories.