Thanks, Martin!
I have missed the word "remote" :D
I have missed the word "remote" :D
SynchronizationResult.Removals
is "Collection of remote file removals".
Logger.WriteLine("Deleting XML log file [{0}]", XmlLogPath);
try
{
File.Delete(XmlLogPath);
}
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="http://winscp.net/schema/session/1.0" name="MY_SERVER_NAME" start="2019-07-18T13:36:17.488Z">
<group name="sftp://ubuntu@MY_SERVER_NAME:22 -hostkey="ssh-rsa 2048 *************************=" -privatekey="C:\key.ppk" -timeout=60 -passphrase=***" start="2019-07-18T13:36:20.219Z">
</group>
<group name="" start="2019-07-18T13:36:21.029Z">
<cwd>
<cwd value="/home/ubuntu" />
<result success="true" />
</cwd>
</group>
<group name="remote -delete -nopermissions -preservetime -transfer="binary" -resumesupport="off" -criteria="either" -- "c:\test case\" "/home/ubuntu/the test directory/"" start="2019-07-18T13:36:21.108Z">
<rm>
<filename value="/home/ubuntu/the test directory/first file.txt" />
<result success="true" />
</rm>
</group>
<group name="" start="2019-07-18T13:36:21.942Z">
</group>
</session>
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="http://winscp.net/schema/session/1.0" name="ubuntu@MY_SERVER_NAME" start="2019-07-18T13:06:40.914Z">
<group name="sftp://ubuntu@MY_SERVER_NAME:22 -hostkey="ssh-rsa 2048 *************************=" -privatekey="C:\some_key.ppk" -timeout=60 -passphrase=***" start="2019-07-18T13:06:43.509Z">
</group>
<group name="" start="2019-07-18T13:06:43.611Z">
<cwd>
<cwd value="/home/ubuntu" />
<result success="true" />
</cwd>
</group>
<group name="local -delete -nopermissions -preservetime -transfer="binary" -resumesupport="off" -criteria="either" -- "c:\test case\" "/home/ubuntu/the test directory/"" start="2019-07-18T13:06:43.692Z">
</group>
<group name="" start="2019-07-18T13:06:44.555Z">
</group>
</session>
> 2019-07-18 16:06:44.067 Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
> 2019-07-18 16:06:44.067 04,00,00,04,04,00,00,00,04,00,00,00,00,
. 2019-07-18 16:06:44.067 Sent 17 bytes
. 2019-07-18 16:06:44.067 There are 0 bytes remaining in the send buffer
. 2019-07-18 16:06:44.067 Looking for network events
. 2019-07-18 16:06:44.067 Timeout waiting for network events
. 2019-07-18 16:06:44.067 .;d;0;2019-07-18T13:02:37.000Z;3;"ubuntu" [1000];"ubuntu" [1000];rwxrwxr-x;0
. 2019-07-18 16:06:44.067 ..;d;0;2019-07-18T13:02:37.000Z;3;"ubuntu" [1000];"ubuntu" [1000];rwxr-xr-x;0
. 2019-07-18 16:06:44.067 Local file 'c:\test case\first file.txt' [2019-07-18T13:06:33.882Z] [1] is new
< 2019-07-18 16:06:44.067 Script: Synchronizing...
. 2019-07-18 16:06:44.067 Synchronizing local directory 'c:\test case\' with remote directory '/home/ubuntu/the test directory/', params = 0x403 (Delete, NoConfirmation, BySize)
< 2019-07-18 16:06:44.068 Script: Local 'c:\test case' <= Remote '/home/ubuntu/the test directory'
< 2019-07-18 16:06:44.140 Script: 'c:\test case\first file.txt' deleted
. 2019-07-18 16:06:44.187 Session upkeep
. 2019-07-18 16:06:44.187 Looking for network events
. 2019-07-18 16:06:44.187 Detected network event
. 2019-07-18 16:06:44.187 Enumerating network events for socket 1324
. 2019-07-18 16:06:44.187 Enumerated 1 network events making 1 cumulative events for socket 1324
. 2019-07-18 16:06:44.187 Handling network read event on socket 1324 with error 0
. 2019-07-18 16:06:44.187 Received 28 bytes (0)
> 2019-07-18 16:06:44.555 Script: exit
. 2019-07-18 16:06:44.555 Session upkeep