python - Why does deleting a directory structure and then re-creating it immediately after raise an exception? -
i've reduced issue this:
import os, shutil shutil.rmtree("wtf", true) os.makedirs("wtf")
now, when run following error:
traceback (most recent call last): file "wtf.py", line 4, in <module> os.makedirs("wtf") file "c:\program files (x86)\python34\lib\os.py", line 244, in makedirs mkdir(name, mode) permissionerror: [winerror 5] access denied: 'wtf'
what causing this?
Comments
Post a Comment