In line:
|
fs::remove_all(mCommFolder, ec); |
I assume you are aware, but many times the simulation gets stuck because this remove folder fails and instead of an error a message is thrown, maybe is a good idea to make this an actual error. I prefer to get an error that get stuck ad infinitum. Furthermore, I am solving the problem locally, removing the folder before the simulation starts, so there is no conflict of permissions/lecture/reading/etc...