Topic "WinSCP incorrectly uploading files when custom command run"

Author Message
Ned Martin

Guest


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
Advertisements
Ned
[View user's profile]

Joined: 2015-03-18
Posts: 3
Location: Brisbane
Registered on forum and logged in...
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26553
Location: Prague, Czechia
Thanks for your report.
Will check it and contact you later.
_________________
Martin Prikryl
Ned
[View user's profile]

Joined: 2015-03-18
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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26553
Location: Prague, Czechia
No it really uploads the local copy of the remote files.

This bug has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1294

I have sent you an email with a development version of WinSCP to address you have used to register on this forum.
Ned
[View user's profile]

Joined: 2015-03-18
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.
m.ali.khan.5049

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26553
Location: Prague, Czechia
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26553
Location: Prague, Czechia
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/show_bug.cgi?id=1526
Advertisements

You can post new topics in this forum






Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License