Kevin Kuan added the comment:
After further investigation. It seems that explorer.exe will use lots of memory
when folders are rapidly created. The code change simply slows down folder
creation. Since it is unrelated to python. I am closing this case.
--
resolution: -> not a
New submission from Kevin Kuan :
Hi,
I would like to report bug for os.makedirs().
I am running this script on Windows 10 1909 (most win10 work), python 3.8.1.
os.makedirs() is making explorer.exe huge amount of memory and crashing the
system after only 3 hours.
After changing that line to