WinSCP incorrectly uploading files when custom command run

Advertisement

Ned Martin
Guest

WinSCP incorrectly uploading files when custom command run

Select a local directory and corresponding remote directory.

Execute custom command: "C:\Program Files (x86)\WinMerge\WinMergeU.exe" /u /r /s /x "!^!" "!"
(Apply to directories: ticked, Local command: selected)

Remote files are downloaded to temporary directory.

WinMerge opens correctly etc.

Close WinMerge.

WinSCP attempts to upload local files.

Problem did not occur in versions prior to 5.7

WinSCP version 5.7
Commander interface

Reply with quote

Advertisement

Ned
Joined:
Posts:
3
Location:
Brisbane

I would have to double check, but I'm reasonably sure it is trying to upload the actual local ones - specifically, the first file from the remote directory alphabetically (I'm unsure if it would try with the second one too - I cancel it on the first one). I only noticed when it popped up a "do you want to overwrite this file" prompt, and then on some subsequent testing I believe I noticed it upload a file from the local directory which was not already present in the remote directory (i.e. it did not pop up the overwrite confirmation).

However I will test further to confirm that.

I did not modify the local files in any way, but possibly a bug with WinMerge or some other part of my system may have made it seem as though they were modified.

Is there any way to control this behaviour?

Reply with quote

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

Re: WinSCP incorrectly uploading files when custom command run

No it really uploads the local copy of the remote files.

This bug has been added to the tracker:
https://winscp.net/tracker/1294

I have sent you an email with a development version of WinSCP to address you have used to register on this forum.

Reply with quote

Advertisement

Ned
Joined:
Posts:
3
Location:
Brisbane

The dev. copy you sent fixes this problem.

However if all it is doing is uploading the remote files, while inefficient and pointless when they haven't changed, no data should be lost so I can probably live with that problem until a new version comes out with it fixed!

Thanks for the prompt fix.

Reply with quote

m.ali.khan.5049
Guest

selecting directories to compare using winmerge+winscp custom command

Dear

I am trying to compare files in a local/remote directory, below are the steps

have configured winmerge as custom command in winscp
select local folder and relevant remote folder
compare with winmerge
change a remote file
close winmerge
the change is not uploaded to server however it works in case of file compare

Reply with quote

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

Re: selecting directories to compare using winmerge+winscp custom command

m.ali.khan.5049 wrote:

Dear

I am trying to compare files in a local/remote directory, below are the steps

have configured winmerge as custom command in winscp
select local folder and relevant remote folder
compare with winmerge
change a remote file
close winmerge
the change is not uploaded to server however it works in case of file compare
Yes, it does not work for directories atm. Will try to improve it.

Reply with quote

Advertisement

You can post new topics in this forum