Possible Duplicate:
Does it make sense to answer old questions?
I'm asking in general, but this question is what made me think about it. The accepted answer is perfectly correct, but since Python 3's os.makedirs
function has the exists_ok
flag that the python 2.x function does not.
This is the basic rationale I thought up for each position:
ANSWER: Since this is the first question that comes up for a google search for "python mkdir if not exist" and similar queries, it should have new information included. Otherwise, when similar questions are posted, users will close them as duplicates referring to this question, and the new information is never provided.
DON'T ANSWER: This question is quite old and thorough, so users are probably safe being directed to it. The relevant information could still be added as a comment.
Thoughts? I saw this question, but since the accepted answer is still correct, although not 100% complete, I still wanted to ask.