if I do
rm_rf('somewhere')
mkdir('somewhere')
every so often, the mkdir throws a Permission Denined. Is this because the rm_rf runs asynchronously and sometimes hasnt finished deleting the dir before the mkdir runs?
How do I make it block until its completed the delete?
running this on Windows btw.
Thanks
Sounds like a feature of NTFS, see Microsoft Suppport:
And looking at the solutions, I don’t think there is much to do other than to wait and retry.