Vfs: Better handling and more tests for suffix file renames
authorChristian Kamm <mail@ckamm.de>
Tue, 2 Apr 2019 09:51:47 +0000 (11:51 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:46 +0000 (10:58 +0100)
commit4bab93b24674a2e268778aff43e72dcaa8b554cd
treec764d59c9d8f135aa901497b8f1fe5aef6f57969
parent5e5b0b3f76fd4dbe4c6f19cbdc55e3e75ab47c8b
Vfs: Better handling and more tests for suffix file renames

Previously removing the vfs suffix of a file always triggered a
conflict. Now it may just cause a file download.

This was done because users expected symmetry in the rename actions and
renaming foo -> foo.owncloud already triggers the "make the file
virtual" action. Now foo.owncloud -> foo triggers the "download the
contents" action.
src/libsync/discovery.cpp
test/testsyncvirtualfiles.cpp