Post a reply

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: Better Renaming Support With /keepuptodate

Thanks for your suggestion.
tewan

Better Renaming Support With /keepuptodate

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,

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 :))