Take care of mangled paths on download as well
authorKevin Ottens <kevin.ottens@nextcloud.com>
Fri, 26 Jun 2020 07:43:06 +0000 (09:43 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 30 Jun 2020 09:29:08 +0000 (11:29 +0200)
commit3182c613ac96b07c2a2ebec3793facfdc21268d4
tree5924ef1bfface3f93fe2470f1077e7c41487aa48
parent6dc12166ad70943b8221becfd30b541f93e4ca4e
Take care of mangled paths on download as well

This means adjusting PropagateDownloadEncrypted so that it knows where
the file will end (otherwise it would create temporary files in non
existant paths for instance).
In turn we have to adjust PropagateDownloadFile accordingly so that it
resolves the local folder the file will end up in.
And last we adjust PropagateLocalMkdir to resolve paths as well and
demangle as needed.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/propagatedownload.cpp
src/libsync/propagatedownloadencrypted.cpp
src/libsync/propagatedownloadencrypted.h
src/libsync/propagatorjobs.cpp
src/libsync/propagatorjobs.h