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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -