Don't detect file changes during hydration for virtual files
authorKevin Ottens <kevin.ottens@nextcloud.com>
Mon, 4 Jan 2021 15:23:47 +0000 (16:23 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Thu, 14 Jan 2021 11:57:03 +0000 (12:57 +0100)
commit7c8b7db725655b8ee9c5fd334972e49400ea7576
treebd6b5b62f7bfedfe91ec6632bbd31f9f33d70ad3
parent6e51dcf9c69f4e662d325fbc070fe204a35d167a
Don't detect file changes during hydration for virtual files

Indeed, that file size will almost always change between the 1 byte
placeholder and the hydrated file. Only when using the CfAPI on Windows
this won't be the case since because it will expose the original size
even for placeholders.

Also worth noting: the suffix backend didn't hit that case since the
filename changes (with suffix for placeholders, without for hydrated
files).

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