"Keep remote dirs up to date" uploads everything twice

Advertisement

Henrik
Joined:
Posts:
7
Location:
Toronto

"Keep remote dirs up to date" uploads everything twice

All,

I use Notepad++ for my code editor, but instead of using its FTP connect product (flaky, in my experience destructive), I use WinSCP's "Keep remote directories up to date" command. Works great.

But for some reason whenever this command updates the remote directory, it uploads the changed file twice. Not a huge deal, but some of my code files are large enough that this causes a few seconds of delay whenever I save changes to a file.

Am I missing something? Have I set something that should be unset?

Thanks,

- Henrik

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,802
Location:
Prague, Czechia

Re: "Keep remote dirs up to date" uploads everything twice

Well, notepad may trigger two "change" events. This is very common. Though WinSCP should ignore the latter one because the files are already synchronized after the first upload. As it does not, it looks like general problem with timestamps synchronization. Check if the timestamp of remote file is the same as timestamp of original local one. If they are not, refer to this FAQ.

Reply with quote

Henrik
Joined:
Posts:
7
Location:
Toronto

Thanks much Prikryl.

The time stamp on my server is time-zone adjusted, and therefore files on the server are stamped 3 hours *before* mine. Thus perhaps WinSCP synchronizes owing to the earlier time on the server?

Is there a way to tell WinSCP to take time zones into account?

Thanks so much for your product. It's a lifesaver...

- Henrik

Reply with quote

Henrik
Joined:
Posts:
7
Location:
Toronto

Thanks Martin,

The Timezone offset field is disabled, although I am using the FTP protocol (that's for the server in question - I have a stored session for a different server using SFTP).

I have tried to both set and unset preserve remote timestamp, with no change in enabling the field.

- Henrik

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,802
Location:
Prague, Czechia

Henrik wrote:

The Timezone offset field is disabled, although I am using the FTP protocol
Make sure you actualy select FTP on Session tab before you go to Environment tab.
_________________
Martin Prikryl

Reply with quote

Henrik
Joined:
Posts:
7
Location:
Toronto

Thanks Martin,

I changed the setting in the saved session (as opposed to the login screen), and that worked.

All good.

Thanks again.

Best,

- Henrik

Reply with quote

Advertisement

You can post new topics in this forum