bool removeDirs(wxFileName f){ if(f.DirExists() && f.Rmdir()) return removeDirs(f.GetPath()); return true; }