Method VerifyAttachmentsAsync
- Namespace
- PowerSync.Common.Attachments
- Assembly
- PowerSync.Common.dll
VerifyAttachmentsAsync()
Verifies the integrity of all attachment records and repairs inconsistencies. Checks each attachment record against the local filesystem and:
- Updates LocalUri if the file exists at a different path.
- Archives non-Synced attachments whose local files are missing.
- Requeues synced attachments for download if their local files are missing.
public Task VerifyAttachmentsAsync()
Returns
- Task
A task that completes once the verification pass has saved any state corrections.