ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

AP_Scripting: ignore hidden Lua files

Open tpwrules opened this issue 1 year ago • 1 comments

On macOS, sometimes ._script.lua is created to store metadata when the user copies script.lua over to their SD card. Previously, the scripting engine would barf since the file is not Lua. Now, these files are ignored.

Also avoids a case where a hidden and valid script might be loaded without the user's knowledge.

Tested on SITL that a hidden file is rejected and non hidden files are still loaded.

tpwrules avatar Jun 30 '24 17:06 tpwrules

I have seen at least one user seeking help on the Discord because they hit the problem with macOS independently.

tpwrules avatar Jun 30 '24 18:06 tpwrules