avoid deleting renamed file with spaces in name
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 30 Mar 2022 17:11:35 +0000 (19:11 +0200)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Wed, 6 Apr 2022 07:32:02 +0000 (07:32 +0000)
commit908066072af3017cfa35cc2ef8aabd221199203b
treeed09ac23d637d2eec7b8a74d8b521cf06235fa77
parentf76846cc444815e651342d43ecb6b39542fe8e2d
avoid deleting renamed file with spaces in name

ensure that normal sync engine will nto delete new file renamed due to
trailing/leading spaces in name

rename before upload in the same job to avoid having invalid state in
local desktop client database to ensure any subsequent run of the sync
engine will not make wrong decisions

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/discovery.cpp
src/libsync/propagateremotemkdir.cpp
src/libsync/propagateupload.cpp
test/testlocaldiscovery.cpp