=> b9792b30e9a4d639e1af0f439c30f2648ae5a907
[1mdiff --git a/src/app.c b/src/app.c[m [1mindex de7e8f66..7e811bfa 100644[m [1m--- a/src/app.c[m [1m+++ b/src/app.c[m [36m@@ -405,7 +405,8 @@[m [mstatic const char *dataDir_App_(void) {[m }[m [m #if defined (iPlatformAndroid)[m [31m-static void copyFile_(const char *srcPath, const char *dstPath) {[m [32m+[m[32mstatic iBool copyFile_(const char *srcPath, const char *dstPath) {[m [32m+[m[32m iBool ok = iFalse;[m if (fileExistsCStr_FileInfo(srcPath)) {[m iFile *src = newCStr_File(srcPath);[m iFile *dst = newCStr_File(dstPath);[m [36m@@ -413,10 +414,12 @@[m [mstatic void copyFile_(const char *srcPath, const char *dstPath) {[m iBlock *data = readAll_File(src);[m write_File(dst, data);[m delete_Block(data);[m [32m+[m[32m ok = iTrue;[m }[m iRelease(dst);[m iRelease(src);[m }[m [32m+[m[32m return ok;[m }[m [m static void migrateInternalUserDirToExternalStorage_App_(iApp *d) {[m [36m@@ -438,8 +441,9 @@[m [mstatic void migrateInternalUserDirToExternalStorage_App_(iApp *d) {[m makeDirs_Path(collectNewCStr_String(extDataDir));[m iForIndices(i, names) {[m const char *src = concatPath_CStr(intDataDir, names[i]);[m [31m- copyFile_(src, concatPath_CStr(extDataDir, names[i]));[m [31m- remove(src);[m [32m+[m[32m if (copyFile_(src, concatPath_CStr(extDataDir, names[i]))) {[m [32m+[m[32m remove(src);[m [32m+[m[32m }[m }[m /* Copy identities as well. */[m const char *srcIdents = concatPath_CStr(intDataDir, "idents");[m [36m@@ -449,8 +453,9 @@[m [mstatic void migrateInternalUserDirToExternalStorage_App_(iApp *d) {[m iForEach(DirFileInfo, entry, iClob(newCStr_DirFileInfo(srcIdents))) {[m const iRangecc name = baseName_Path(path_FileInfo(entry.value));[m const char *src = cstr_String(path_FileInfo(entry.value));[m [31m- copyFile_(src, concatPath_CStr(dstIdents, cstr_Rangecc(name)));[m [31m- remove(src);[m [32m+[m[32m if (copyFile_(src, concatPath_CStr(dstIdents, cstr_Rangecc(name)))) {[m [32m+[m[32m remove(src);[m [32m+[m[32m }[m }[m rmdir_Path(collectNewCStr_String(srcIdents));[m }[m
text/gemini; charset=utf-8
This content has been proxied by September (3851b).