lua: SD adoption migrates /apps too (mkdir the FAT parent so the copies succeed)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Kaj Schittecat
2026-08-04 13:07:24 +02:00
co-authored by Claude Opus 4.8
parent 1a1fc0f260
commit f7a550685c
+1
View File
@@ -217,6 +217,7 @@ bool meshcomodMigrateSpiffsToSd(bool force) {
SD.mkdir("/meshcomod/lock");
SD.mkdir("/meshcomod/msgs"); // chat segments: SPIFFS names them flat ("/msgs/seg_*.bin"),
// but the FAT card needs the real parent dir or every copy fails
SD.mkdir("/meshcomod/apps"); // Lua apps installed to internal storage before a card existed
bool identity_ok = false;
int copied = 0, failed = 0;
static uint8_t buf[4096];