views:

111

answers:

0

I am having a lot of issues trying to automate downloading from an ftp site. I know the folder the file will be in, and I know that it will be a .zip file. However I do not know what the files will be named.

So I have code that works if I know the file name...for example:

$sourceuri = "ftp://myFtpSite/test/myZipFile.zip"

I would like to be able to use wildcards in this string so it will recongize any zip file. So I could write something like

$sourceuri = "ftp://myFtpSite/test/_.zip"

and it would download any zip file in that folder.