Method
setDataDir
(
path: string | null,
migrate: boolean = true
)
Source from the content-addressed store, hash-verified
| 15 | } |
| 16 | |
| 17 | async setDataDir( |
| 18 | path: string | null, |
| 19 | migrate: boolean = true |
| 20 | ): Promise<{ success: boolean; error?: string; from?: string; to?: string; requiresRelaunch?: boolean }> { |
| 21 | return post<{ success: boolean; error?: string; from?: string; to?: string; requiresRelaunch?: boolean }>( |
| 22 | '/cache/data-dir', |
| 23 | { |
| 24 | path, |
| 25 | migrate, |
| 26 | } |
| 27 | ) |
| 28 | } |
| 29 | |
| 30 | async getLatestImportLog(): Promise<{ success: boolean; path?: string; name?: string; error?: string }> { |
| 31 | return get<{ success: boolean; path?: string; name?: string; error?: string }>('/cache/latest-import-log') |
Callers
nothing calls this directly
Tested by
no test coverage detected