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!
FTP File Loop Reset
Re: FTP File Loop Reset
There is only one way: to begin the loop again.Is there a way to reset the FTP File Loop so that it can be rebuilt for each file in the file loop?
Unfortunately, I don't know your algorithm, but perhaps it would be better to use FTP Synchronization or SSL FTP Synchronization?
Oleg Yershov