From b00b9521c642f6dcee42c95466a2655d1e94143c Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Thu, 20 Mar 2025 20:49:23 +0000 Subject: [PATCH] Sync all file types --- .../sync-client/src/file-operations/file-operations.ts | 4 ---- .../src/sync-operations/unrestricted-syncer.ts | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/frontend/sync-client/src/file-operations/file-operations.ts b/frontend/sync-client/src/file-operations/file-operations.ts index b198caa..6adada5 100644 --- a/frontend/sync-client/src/file-operations/file-operations.ts +++ b/frontend/sync-client/src/file-operations/file-operations.ts @@ -145,10 +145,6 @@ export class FileOperations { await this.fs.rename(oldPath, newPath); } - public isFileEligibleForSync(path: RelativePath): boolean { - return isFileTypeMergable(path); - } - private async createParentDirectories(path: string): Promise { const components = path.split("/"); if (components.length === 1) { diff --git a/frontend/sync-client/src/sync-operations/unrestricted-syncer.ts b/frontend/sync-client/src/sync-operations/unrestricted-syncer.ts index fe268f4..4eef87a 100644 --- a/frontend/sync-client/src/sync-operations/unrestricted-syncer.ts +++ b/frontend/sync-client/src/sync-operations/unrestricted-syncer.ts @@ -356,16 +356,6 @@ export class UnrestrictedSyncer { syncSource: SyncSource, fn: () => Promise ): Promise { - if (!this.operations.isFileEligibleForSync(relativePath)) { - this.history.addHistoryEntry({ - status: SyncStatus.ERROR, - relativePath, - message: `File ${relativePath} is not eligible for syncing`, - type: syncType - }); - return; - } - this.logger.debug( `Syncing ${relativePath} (${syncSource} - ${syncType})` );