taking - there are some dups of this out there, I think.
I believe this is caused by a failure to delete the .msf file at some point - this prevents us from re-creating the folder. I believe the failure to delete the folder might have to do with crashing on shutdown, before we can write out panacea.dat, though I'm not sure about that. If that is the case, it might be that the stale data in panacea.dat causes problems when we recreate the folder and then delete it.
Created attachment 154670 [details] [diff] [review] proposed fix this is more of a recovery from an earlier bug than a fix for the underlying cause - if you try to create a folder and there's already a .msf file, we'll just ignore the .msf file (it's out of date, so it will get blown away soon) and allow folder creation to continue. This fixes the cascacding of errors. I also added a null check for path because I encountered a null path at some point in my debugging this. I'll still try to figure out why .msf files sometimes remain after a folder is deleted - I know that the reason is that someone is holding onto the .msf file, but I don't know who.
*** Bug 208578 has been marked as a duplicate of this bug. ***
fixed on branch and trunk.