Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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

martin wrote:

Yes, it does not work for directories atm. Will try to improve it.

This issue has been added to the tracker:
https://winscp.net/tracker/1526
martin

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.
m.ali.khan.5049

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
Ned

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.
martin

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.
Ned

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?
martin

Thanks for your report.
Will check it and contact you later.
Ned

Registered on forum and logged in...
Ned Martin

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