Solved... kinda. A word of warning.
Hi,
I'm enclosing quote of Martin's email to me:
So this means that from sftp-client's perspective the delete was ok, but actually it was not.
Here's the warning: If your script deletes file, there is small possibility, that the file is not actually deleted. You should take this into consideration when automating the transfers.
I'm enclosing quote of Martin's email to me:
As you can see in the log, WinSCP requests removal of the file and the server replies with status code 0 (success). So there's no way for WinSCP to know that there's a problem.
. 2011-07-06 13:19:04.990 Deleting file "/cygdrive/x/MyAccount/testfile1.doc".
> 2011-07-06 13:19:04.990 Type: SSH_FXP_REMOVE, Size: 71, Number: 4621
...
< 2011-07-06 13:19:05.037 Type: SSH_FXP_STATUS, Size: 24, Number: 4621
< 2011-07-06 13:19:05.037 Status code: 0
So this means that from sftp-client's perspective the delete was ok, but actually it was not.
Here's the warning: If your script deletes file, there is small possibility, that the file is not actually deleted. You should take this into consideration when automating the transfers.