Hi Harri,
The file connector accepts wildcards and has options like recursive and flatten, which will allow you to match files of a specific name at any point in the hierarchy.
Refer to the docs here:
https://learn.microsoft.com/en-us/azure/data-factory/connector-file-system
Best Regards,
Ashley