Skip to content

Commit

Permalink
fir regression with VFS availability test on Windows
Browse files Browse the repository at this point in the history
ensure we report the expected availability erro for non existing files

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Nov 28, 2024
1 parent 891e379 commit c993a81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libsync/vfs/cfapi/vfs_cfapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ Vfs::AvailabilityResult VfsCfApi::availability(const QString &folderPath, const
break;
};
return VfsItemAvailability::Mixed;
} else {
} else if (basePinState) {
const auto hydrationAndPinStates = computeRecursiveHydrationAndPinStates(folderPath, basePinState);

const auto pin = hydrationAndPinStates.pinState;
Expand Down Expand Up @@ -382,6 +382,8 @@ Vfs::AvailabilityResult VfsCfApi::availability(const QString &folderPath, const
}
}
return AvailabilityError::NoSuchItem;
} else {
return AvailabilityError::NoSuchItem;
}
}

Expand Down

0 comments on commit c993a81

Please sign in to comment.