Syncronize not updating if the file size is the same
Hello,
I'm running an script that syncronizes content from a local directory to an FTP site.
We're using WinSCP version 5.13
The .bat file is calling the script correctly...
The script itself works for new files and for files where the size has changed...
I tried adding the -critera=time flag, but that doesn't seem to be working for me...
Is my syntax wrong for the -criteria flag? I saw in the documentation I need to use SFTP instead of FTP if I want to use the "preserve timestamps" option, but I don't think that applies to me here.
I'm running an script that syncronizes content from a local directory to an FTP site.
We're using WinSCP version 5.13
The .bat file is calling the script correctly...
"C:\Program Files\WinSCP\WinSCP.exe" /ini=nul /script=C:\AutoJobs\ColorWeb\sync-pressrunplanner-pages.txt exit
The script itself works for new files and for files where the size has changed...
echo on open ftp://[MyUserName]:[MyPassword]@[MyServer] synchronize remote -delete -filemask="| */" Y:\ / close exit
I tried adding the -critera=time flag, but that doesn't seem to be working for me...
echo on open ftp://[MyUserName]:[MyPassword]@[MyServer] synchronize remote -delete -criteria=time -filemask="| */" Y:\ / close exit
Is my syntax wrong for the -criteria flag? I saw in the documentation I need to use SFTP instead of FTP if I want to use the "preserve timestamps" option, but I don't think that applies to me here.