FTPing a file

Hi,

I want to move few of the files from local drive to FTP location. I know i can use pu.client.ftp service to copy the files but my file names will keep chaning thats my worry. How can i get the file name and then i pas it to FTP service to put the data?

Thanks
Atul

PSUtilities has a listFiles service that can list files on your local drive matching a filter pattern.

You can then loop over the resulting fileList and use the pub.client:ftp service, passing it the fileName input.