I'm missing something obvious here and would be grateful for some advice.
When I save a sketch in the Arduino IDE it seems to insist on putting the updated version in a "folder within a folder". This is exactly what it warns me against and prevents if I try to do that myself. I end up with a correctly named and positioned sketch folder holding an out of date version of the .ino and another correctly named sketch folder with an updated version of the .ino.
Arduino
MySketch
OldSketch.ino
MySketch
NewSketch.ino
I came across this with a network drive where I was using [Save] to save the sketch to my local drive and then [Save As] to save it to the network drive. This seemed to confuse the IDE which then showed this behaviour. If I use [Save As] and navigate to the Arduino folder on the network drive the IDE recognises that as the correct folder, then goes into it but still saves in the second depth folder. If I delete the whole structure back to the Arduino folder and save the sketch again it warns me about the sketch folder being missing then creates the same double depth folder again.
I have the correct default folder set up in the IDE Preferences. I also have other older sketches which have not had this double structure imposed on them. I can't seem to see a way to currently prevent this. What am I missing?