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:
1 parent
1a1fc0f260
commit
f7a550685c
1 file changed
+1
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user