Provide a search option in the TreeView similar as in the DataGrid.
When searching on loaded data it will highlight the items(folders, files) like in data grid.
I think filter is a separate feature that to implement together.
Take into account when filtering not to loose the selections that user done and can remove during the filter process from collection view.