Dynare is generating a redundant folder with an arbitrary name, why?

Dear all,

I am trying to run the same model simulation for a group of different parameter values. So, I iterate in MatLab and repeat calling dynare in each iteration.
But, each time Dynare is called a redundant empty folder named “YjLu0asVxy” is generated that prevents the simulation in the next iteration.

I am wondering how to pause dynare from generating those folders. Thanks,

here is the error message

Evaluating expressions…done
Computing static model derivatives (order 1).
Computing dynamic model derivatives (order 3).
terminate called after throwing an instance of ‘std::filesystem::__cxx11::filesystem_error’
what(): filesystem error: cannot remove all [YjLu0asVxy]

Put

[~,~]=rmdir(['+',M_.fname],'s');

before the subsequent calls. This is a problem on Windows we are working on to fix.

Thanks, Johannes, that helps.

I had this problem too, and in my case it was related to Dropbox synching in the background.

Turning off Dropbox synching solved the problem, although this is only a short term fix.

Yes, see also