Found the problem I think.
There is a sub-dir that is emptied during start out of formcreate. So I load the directory with findallfiles. The path to the sub-directory wasn't set, blank in fact and it loaded the development dir and deleted all my files except the exe file. i guess because it was open. I did have a very recent backup of the entire directory. So I restored.
Changing that process to DirectoryExists, DelDirectory, MakDir.