I'm writing a library, and that library .cpp/.h code is in devel/arduino/libraries/LightBrightLib/. I have test code that calls that library, and an example program using the library. Right now they're in /devel/arduino/lightbright/LightBrightMain/ and /devel/arduino/lightbright/LightBrightLibTest/.
I see most libraries have an examples directory inside the library, so I tried moving mine to /devel/arduino/libraries/LightBrightLib/examples/LightBrightMain/ and /devel/arduino/libraries/LightBrightLib/examples/LightBrightLibTest/
When I do that, and try to save my LightBrightMain.ino file into /devel/arduino/libraries/LightBrightLib/examples/LightBrightMain/, it says "You cannot save a sketch into a folder inside itself. This would go on forever.". And of course it won't let me select the examples directory or any other directory above it.
How do other library makers do this? Maybe they don't use the IDE, or they copy it in outside the IDE, or use symlinks? What does the IDE think it's doing and why is it fighting putting the file where it already is?
NOTE: This is not a file permission problem as I own all files