MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / syncToCloud

Method syncToCloud

apps/webuiapps/src/lib/FileSystemStore.ts:680–692  ·  view source on GitHub ↗

* Sync write to cloud

(path: string, content: unknown)

Source from the content-addressed store, hash-verified

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

Callers 1

useFileSystemFunction · 0.80

Calls 3

warnMethod · 0.80
writeFileMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected