'Resume' script option restarts fully downloaded files
WinSCP Versions: 5.1.4, 5.2 Beta
Windows Version: Windows 7 Professional SP1
Transfer Protocol: FTP
Script (file name is FTPBackup.txt):
option batch on
option confirm off
open user@FTPserver
get -resume /*.* C:\FTPBackup\
Command:
WinSCP.exe /console /script=C:\FTPBackup\FTPBackup.txt
Steps to Reproduce issue:
- Have several large files on server
- Let first few files download completely using above script
- Hit Ctrl+C to interrupt and terminate the batch transfer
- Re-run the same script to try completing the transfer
Expected Behavior:
Fully downloaded files are skipped, and partially downloaded file is resumed.
Observed Issue:
Fully downloaded files are downloaded from scratch again (instead of getting skipped).
Edit: Setting 'option batch continue' doesn't help either.
FYI, Partially downloaded file gets resumed as expected. If the last byte is removed, then just that byte is downloaded and WinSCP starts processing the next file as expected.
Windows Version: Windows 7 Professional SP1
Transfer Protocol: FTP
Script (file name is FTPBackup.txt):
option batch on
option confirm off
open user@FTPserver
get -resume /*.* C:\FTPBackup\
Command:
WinSCP.exe /console /script=C:\FTPBackup\FTPBackup.txt
Steps to Reproduce issue:
- Have several large files on server
- Let first few files download completely using above script
- Hit Ctrl+C to interrupt and terminate the batch transfer
- Re-run the same script to try completing the transfer
Expected Behavior:
Fully downloaded files are skipped, and partially downloaded file is resumed.
Observed Issue:
Fully downloaded files are downloaded from scratch again (instead of getting skipped).
Edit: Setting 'option batch continue' doesn't help either.
FYI, Partially downloaded file gets resumed as expected. If the last byte is removed, then just that byte is downloaded and WinSCP starts processing the next file as expected.