MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / restore

Function restore

src/settings/backupRestore.js:332–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330 }
331
332 function restore() {
333 sdcard.openDocumentFile(
334 (data) => {
335 backupRestore.restore(data.uri);
336 },
337 (error) => {
338 console.error("File picker error:", error);
339 toast(strings.error || "Error selecting file");
340 },
341 "application/octet-stream",
342 );
343 }
344}
345
346backupRestore.restore = async function (url) {

Callers 1

callbackFunction · 0.70

Calls 2

openDocumentFileMethod · 0.65
errorMethod · 0.45

Tested by

no test coverage detected