Page 1 of 1

FTP File Loop Reset

Posted: Wed Oct 08, 2025 10:19 am
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!

Re: FTP File Loop Reset

Posted: Sat Oct 11, 2025 2:56 pm
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?