4 ms·
I can't tell if the last bit is being sarcastic on bad naming, or it's an oversight: the function you want is called os.makedirs http://docs.python.org/library/
by dalke 14y ago
I can't tell if the last bit is being sarcastic on bad naming, or it's an oversight: the function you want is called os.makedirs http://docs.python.org/library/os.html#os.makedirs http://docs.python.org/library/os.html#os.makedirs and has been around since 1.5.2.
- aptwebapps 14y agoIt's sarcasm. njharman would have preferred mkdirs.
- masklinn 14y agoor `mkdir(p=True)`, maybe
- dalke 14y agoAhhh! I couldn't see the difference between 'mkdirs' and 'makedirs'. Thanks.
- njharman 14y agoActually I'd preferred something object oriented with option to ignore existing and make all intermediate parts Path.make(force=False) 2nd choice: makedir(force=False) 3rd choice: makedir() and makedirs() Never ever would I want/expect two related functions one abbreviated one not. Yes, I know history of why it's called mkdir. Should learn from history, not repeat it.