I am using the latest version of WinSCP and am trying to use a simple script to push changes from one machine to another via the FTP server. The script is as follows:
open ftpes://xxxxxxxx:xxxxxxx@xxxxxx:nnnnnn/ -certificate="xxxxxxx" -rawsettings ProxyPort=0
# Change directory
synchronize -delete -mirror -preservetime local "E:\xxxxxxxx" /ServicesSTORE/
# Exit WinSCP
I have removed private information but the connection is made and successful. The transfer starts and all is well for about 5 minutes. Then WinSCP crashes with:
Local 'E:xxxx\Results' <= Remote '/ServicesSTORE/xxxxx 'E:\xxxxx' <= Remote '/ServicesSTORE/xxxxxx'
Error listing directory '/ServicesSTORE/xxxxxxxx'.
Can't initialize TLS library
Could not retrieve directory listing
The data is invalid.
(A)bort, (R)etry, (S)kip: Abort
I do not know how to respond as Retry in the script, but also watched and responded manually. It continued to fail in the same way.
This process has always worked using FTPMAP but was a little slow, so I am trying to see if WinSCP can be used to replace it.