Loop through files in SFTP folder

Dec 28, 2013 at 1:03 AM
I am trying to write a routine to loop through all the files in a folder copy them of and then delete them from the SFTP Folder.
What would be the loop look like and methods I would need to use.

Thanks.