You can use like this to create a dynamic file collection and add to http request
Path Exists will give you a IlocalResoure type file…which then can be appended to list of ILocalResources and then can be used in http request …
Hope this helps
cheers