session.SynchronizeDirectories: e.touch is Nothing

Advertisement

arthur_kozinski
Joined:
Posts:
1

session.SynchronizeDirectories: e.touch is Nothing

Hello,

I'm kind of troubled concerning the SynchronizeDirectories method.

I've copied your entire code example (VB.NET) using a 'remote' sync (local ==> remote), and when running the piece of code
, on the FileTransferred event, I keep getting the symptom that "e.tocuch remains Nothing".

(while your comments in this piece of code is rather explicit on this one: (...) This should never happen with Session.SynchronizeDirectories (...))


Of course, with this situation, timestamps on the remote server remain the same (untouched) and pretty soon, syncing becomes a slow and lengthy proces (certainly with a lot of files + issues of system clock that is 2 hours later then on my remote machine etc..)


Any idea what might be causing this? I've included a logfile....

Thanks for any form of insight in this troublesome matter.

Grtz,

Arthur

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: session.SynchronizeDirectories: e.touch is Nothing

I've copied your entire code example (VB.NET) using a 'remote' sync (local ==> remote), and when running the piece of code
, on the FileTransferred event, I keep getting the symptom that "e.tocuch remains Nothing".

Can you set Session.DebugLogPath and email me the debug log too? Also can you break the code before disposing the Session instance and email me also the XML log? You will find the path at the beginning of the session log:
. 2012-10-10 09:31:20.321 --------------------------------------------------------------------------
. 2012-10-10 09:31:20.321 WinSCP Versie 5.1.0 (build 2625) (OS 6.0.6002 Service Pack 2)
. 2012-10-10 09:31:20.321 Configuration: nul
. 2012-10-10 09:31:20.322 Local account: DESKTOP\filip
. 2012-10-10 09:31:20.322 Working directory: [HIDDEN]
. 2012-10-10 09:31:20.322 Command-line: "C:\Program Files\WinSCP\winscp.exe" /xmllog="C:\Users\filip\AppData\Local\Temp\tmpF05A.tmp" /xmlgroups /nointeractiveinput /dotnet=510 /ini=nul /log="WinScpLog.txt" /console /consoleinstance=_8180_964

Of course, with this situation, timestamps on the remote server remain the same (untouched) and pretty soon, syncing becomes a slow and lengthy proces (certainly with a lot of files + issues of system clock that is 2 hours later then on my remote machine etc..)

From the log it looks like they are actually updated, but you have a timezone issue there:

. 2012-10-10 09:31:26.052 Local file '[HIDDEN]admin_artsgegevens_opmerkingen_insert.php' [2012-10-04T18:42:37.826Z] [662] is modifed comparing to remote file '/[HIDDEN]/admin_artsgegevens_opmerkingen_insert.php' [2012-10-04T16:42:37.000Z] [623]
...
> 2012-10-10 09:32:09.269 MFMT 20121004194237 admin_artsgegevens_opmerkingen_insert.php

Please read
https://winscp.net/eng/docs/faq_synchronize

Reply with quote

Advertisement

You can post new topics in this forum