Topic "Better Renaming Support With /keepuptodate"

Author Message
tewan
[View user's profile]

Joined: 2011-07-17
Posts: 1
Location: Bastrop, TX
It'd be nice to see better renaming support for files you're keeping synchronized with keepuptodate.

A possible implementation may be to keep a database of file hashes that way you are able to check the hash of a "deleted" file with a "created" file within x amount of seconds.

For example,

Code:
file    hash
foo.bar 1234zyx
bar.foo xyz4321


Renaming example:
You rename foo.bar to foo1.bar
WinSCP detects that foo.bar was "deleted".
WinSCP calculates foo1.bar hash which remains 1234zyx.
Instead of deleting foo.bar, WinSCP runs mv foo.bar foo1.bar

Delete and create example:
You delete bar.foo
WinSCP detects that bar.foo was deleted.
You make a new text file and name it bar.foo.
WinSCP calculates the hash and notices it is 9876abc.
WinSCP rm bar.foo and scp bar.foo

Unrelated, rsync support would be awesome (but this is already in the tracker Smile)
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Thanks for your suggestion.
_________________
Martin Prikryl
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