FTP File Loop Reset

Discuss RoboTask here
Post Reply
Isabella
Posts: 1
Joined: Tue Jun 17, 2025 7:30 am

FTP File Loop Reset

Post by Isabella »

I am trying to automate the process of updating my files so that all files on my local PC are transferred to my FTP server.
Instead of transferring all files every night, I have implemented a file loop for the last 14 days, checking each file in this list to see if it already exists on the FTP server. This is done using an FTP FILE loop nested within a FILE loop.
However, I’ve encountered an issue: when the FTP loop is used in this manner, the pFTP file pointer does not reset for each new file. The FTP File Loop only makes a single pass through the designated files list and then ends.
Is there a way to reset the FTP File Loop so that it can be rebuilt for each file in the file loop?
Thank you!
Oleg
Site Admin
Posts: 3239
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: FTP File Loop Reset

Post by Oleg »

Is there a way to reset the FTP File Loop so that it can be rebuilt for each file in the file loop?
There is only one way: to begin the loop again.

Unfortunately, I don't know your algorithm, but perhaps it would be better to use FTP Synchronization or SSL FTP Synchronization?
Oleg Yershov
Post Reply