Yes, I did without luck. I also tried with directory. But somehow FlashAir mkdir() creates corrupted directory (as I posted before, it couldn't be removed). I couldn't even remove it from laptop and ended up to run chkdsk to fix the issue.
It's not too surprising, the camera firmware doesn't expect SD contents to change outside it's control. So if it keeps some information in memory, it might not notice when the flashair updates, and if it writes and isn't aware of what the flashair did, things could get corrupted.
That doesn't explain why you see the change only after you stop and restart the script though.
What camera and CHDK version are you using?
My impression from MrVas post is that it worked for him, but
For whatever reason, I have not had any luck loading the secondary (slave.lua) script, if the filename was alphabetically above the primary script.
suggests there is something weird.
edit:
also from
If additional commands will be added anywhere above the last comment line, the slave.lua script must have plenty of comment padding at the end, otherwise it will not be reloaded properly.
small / empty files may be problematic?