* Sync write to cloud
(path: string, content: unknown)
| 678 | * Sync write to cloud |
| 679 | */ |
| 680 | async syncToCloud(path: string, content: unknown): Promise<void> { |
| 681 | if (!this.fileApi) { |
| 682 | console.warn('[FileSystemStore] FileApi not configured, skip cloud sync'); |
| 683 | return; |
| 684 | } |
| 685 | |
| 686 | try { |
| 687 | await this.fileApi.writeFile(path, content); |
| 688 | } catch (error) { |
| 689 | console.error('[FileSystemStore] Failed to sync to cloud:', error); |
| 690 | throw error; |
| 691 | } |
| 692 | } |
| 693 | |
| 694 | /** |
| 695 | * Delete from cloud |
no test coverage detected