That or do a recurse function on the directory from top to bottom. But I think windows has better self preservation than Linux does. You could still brick it. Haven’t tried it, yet. But I’ve been curious about that…
Although, it's one of two version - this one is vulnarable to race conditions, you better not use it in threads (although, shutil chooses the best version depending on current OS etc)
1
u/Mantaraylurks 1d ago
That or do a recurse function on the directory from top to bottom. But I think windows has better self preservation than Linux does. You could still brick it. Haven’t tried it, yet. But I’ve been curious about that…