Safe deletion on remote server
Thanks for a great application!
I need to use windows scheduler to get all files in a mailbox-directory on a remote server, check if "get" was flawless, and then delete the downloaded files on the remote server. The process is repeated every 15 minutes. This can be done using .bat files and a winSCP-script.
BUT, a nasty situation can arise: E.g. 10 files are found in the remote directory. All 10 files are downloaded. While in process of downloading a new file, #11, is posted in the remote derectory (by an automatic process on the remote host - needless and complicated to explain here). If I delete all files in the remote directory, then only 10 files are moved to the local server. File #11 will be deleted without being downloaded.
Any way to avoid this using WinSCP?
regards
Michael Bruus
I need to use windows scheduler to get all files in a mailbox-directory on a remote server, check if "get" was flawless, and then delete the downloaded files on the remote server. The process is repeated every 15 minutes. This can be done using .bat files and a winSCP-script.
BUT, a nasty situation can arise: E.g. 10 files are found in the remote directory. All 10 files are downloaded. While in process of downloading a new file, #11, is posted in the remote derectory (by an automatic process on the remote host - needless and complicated to explain here). If I delete all files in the remote directory, then only 10 files are moved to the local server. File #11 will be deleted without being downloaded.
Any way to avoid this using WinSCP?
regards
Michael Bruus