Topic "Remote edition: Detect changes in remote file"

Author Message
pe-rl
[View user's profile]

Joined: 2016-03-22
Posts: 1
Hi,

I use winscp every day to edit remote files. I just double-click on a file in winscp, and it is automatically downloaded and opened in my local editor (vim). Every time I save the file, winscp automatically uploads the file and overwrites the remote one. It is very useful.

Sometimes I have a problem: While I was modifing the file, someone has modified the remote file, and if I save the file, the file is uploaded and the remote file is overwritten, so the changes made by the other person are lost.

I think that the problem could be easily solved if, before uploading the file, winscp reads the timestamp of the remote file, and if it is newer than the last time, then show a warning to the user: "The remote file has been modified. What do you want to do? 1. Overwrite remote file (remote changes will be lost). 2. Download remote file (local changes will be lost). 3. Save with other name (button to open dialog to choose directore and filename)".

That is the way "Remote system explorer" works (it is a plugin for eclipse, to work with remote files via ssh/sftp). But I would like to keep using winscp+vim instead of eclipse+rse. Is it possible to implement the proposal in winscp?

Thank you for creating a so good piece of code.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25019
Location: Prague, Czechia
Thanks for your post.

This request is being tracked already:
https://winscp.net/tracker/show_bug.cgi?id=99
Advertisements

You can post new topics in this forum






Search Site

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