Walter wrote about replacing whole PCB with CF slot, not the slot itself.
As for LUA, I never used it, but from what I see it uses `FIO_RenameFile` and `FIO_MoveFile`
/***
Renames/moves a file on the card (or between cards).
@tparam string filename
@treturn bool success
@function rename
*/
static int luaCB_dryos_rename(lua_State * L)
{
LUA_PARAM_STRING(src, 1);
LUA_PARAM_STRING(dst, 2);
int err = FIO_RenameFile(src, dst);
if (err)
{
err = FIO_MoveFile(src, dst);
}
lua_pushboolean(L, err == 0);
return 1;
}
I guess `dryos_rename` is the function then? Of course needs to be combined with other functions (`dryos_directory` `directory_files` ? ) to iterate over files first and find files to rename.