Make sure we don't assert when calling fileStatus
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 18 Aug 2020 08:23:52 +0000 (10:23 +0200)
committerCamila <hello@camila.codes>
Tue, 18 Aug 2020 11:52:28 +0000 (13:52 +0200)
commitf6e36523d2999b6f3af91e9e4f4948e5f50afa3b
tree17df6965025183142d314da52e150349dfb0f487
parent2456f943af66829f4911cc3a4d5920c014a97ee7
Make sure we don't assert when calling fileStatus

It happens that sometimes we leak a directory path ending with a slash,
but that violates fileStatus' precondition so let's catch it early and
skip such path.

Of course the right fix would be a larger swipe in the sync engine and
around it to not use naked strings anymore but rely on the typesystem.

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