file_finder: Simplify removal of file name from file path (#7398)

This PR simplifies the removal of the file name from the file path when
computing the file finder matches.

Release Notes:

- N/A
21797bad4dMarshall Bowers committed on 2/5/2024, 6:26:42 PM· committed by GitHubparentce62404
1 file changedLine totals unavailable