Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I would like download all the files from an FTP directory and then delete them when they have been successfully downloaded. If new files have been placed in the FTP directory during the process, I need to make sure not to delete them--only the ones that have been downloaded.
I know I can use tFTPFileList to get the list of files, tFTPGet to download them, and tFTPDelete to delete them. I can easily download all the files at once from the directory and delete all the files at once. How can I make sure that I only delete the files that I downloaded and that no new files have been added to the FTP directory?
Do I need to download and delete the files one at a time by name?
Here's what I've come up with so far:
The file mask in both the tFTPGet and tFTPDelete is:
((String)globalMap.get("tFTPFileList_1_CURRENT_FILE"))
It seems to be working.
Here's what I've come up with so far:
The file mask in both the tFTPGet and tFTPDelete is:
((String)globalMap.get("tFTPFileList_1_CURRENT_FILE"))
It seems to be working.