Hi,
Ive been using ES2 and did not had this problem before, but I guess that changing to newer unity version cause it.
So while in game calling ES2.DeleteDefaultFolder(); will give sharing violation of file output_log.txt which is Unitys
log file. I understand that game is running and it needs log file and cant allow for it to be deleted, so what could
be solution for this problem?
Cheers
Milos
ES2.DeleteDefaultFolder throws sharing violation
Re: ES2.DeleteDefaultFolder throws sharing violation
Hi Milos,
I've not seen that before. A workaround would be this:
Joel
I've not seen that before. A workaround would be this:
var files = ES2.GetFiles(Application.persistentDataPath + "/"); foreach(var file in files) { if(file != "output_log.txt") ES2.Delete(file); }All the best,
Joel
Re: ES2.DeleteDefaultFolder throws sharing violation
Thanks! that worked, well it does not happen in Editor, I get the error only from the build.