From f7a550685ca4e337232a4063d8cfe53bbb54ae3e Mon Sep 17 00:00:00 2001 From: Kaj Schittecat Date: Tue, 4 Aug 2026 13:07:24 +0200 Subject: [PATCH] lua: SD adoption migrates /apps too (mkdir the FAT parent so the copies succeed) Co-Authored-By: Claude Opus 4.8 --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index b70a7d2..7f17415 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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];