Only sync eligible files

This commit is contained in:
Andras Schmelczer 2025-01-11 10:53:58 +00:00
parent 49cced2de6
commit 09ab15fb0f
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -640,6 +640,12 @@ export class Syncer {
);
return;
}
if (!this.operations.isFileEligibleForSync(relativePath)) {
Logger.getInstance().info(
`File ${relativePath} is not eligible for syncing`
);
return;
}
Logger.getInstance().debug(`Syncing ${relativePath}`);
await waitForDocumentLock(relativePath);