Make PropagateUploadEncrypted reusable in a directory context
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 17 Jun 2020 17:18:04 +0000 (19:18 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 30 Jun 2020 09:29:08 +0000 (11:29 +0200)
commit319e441653d0b4bfe08b68f3c16c549f6760c493
tree2b91aea019554c7c10f3fe0adfda060926bd7740
parentfc9a8c449670e62707b58b2c60cc14e73f713f20
Make PropagateUploadEncrypted reusable in a directory context

It was assuming we'd encrypt only files but directory names also need to
be encrypted. We just skip the writing to temp file part in that case.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/propagateuploadencrypted.cpp