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 <[email protected]>
  • Loading branch information
mgallien committed Nov 29, 2024
1 parent 60b1091 commit 49267b8
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 49267b8

Please sign in to comment.