how to solve runtime problems
Hello,
I'm using WinSCP 3.8.2 (330) for synchronizing a remote folder (OUT) with a local folder by sftp using a script-file. Synchronization starts with a batch-file:
>cd C:\Programme\WinSCP3
>winscp3.com /script=eccescript.txt
The script-file eccescript.txt contains:
>option batch on
>option confirm off
>option transfer binary
>open sftp://farbglanz:dfosi39df@pts1.photo2lab.net:22
>synchronize local X:\SFTP /OUT
>mv OUT/*.* OUT.done/*.*
>exit
After download the synchronized files (in a second step) are moved from OUT into OUT.done. All of this works perfectly in a static mode.
But what if during the download another file is uploaded by a second user. This file will not be downloaded, because at the beginning of the synchronize-command this file was not yet present. But in the second step it will be moved into the folder OUT.done together with the other files even if it wasn't yet downloaded.
How can I circumvent this problem?
I'm using WinSCP 3.8.2 (330) for synchronizing a remote folder (OUT) with a local folder by sftp using a script-file. Synchronization starts with a batch-file:
>cd C:\Programme\WinSCP3
>winscp3.com /script=eccescript.txt
The script-file eccescript.txt contains:
>option batch on
>option confirm off
>option transfer binary
>open sftp://farbglanz:dfosi39df@pts1.photo2lab.net:22
>synchronize local X:\SFTP /OUT
>mv OUT/*.* OUT.done/*.*
>exit
After download the synchronized files (in a second step) are moved from OUT into OUT.done. All of this works perfectly in a static mode.
But what if during the download another file is uploaded by a second user. This file will not be downloaded, because at the beginning of the synchronize-command this file was not yet present. But in the second step it will be moved into the folder OUT.done together with the other files even if it wasn't yet downloaded.
How can I circumvent this problem?