[Python-Dev] mkdir -p in python (original) (raw)

Peng Yu pengyu.ut at gmail.com
Sun Jul 18 00:03:18 CEST 2010


I don't see that there is a function in the library that mimic the behavior of 'mkdir -p'. If 'makedirs' is used, it will generate an error if the file already exists. There are some functions available on the website to close the gap. But I'd prefer this is in the library. Is there any plan to add a function that mimic the behavior of 'mkdir -p'?

http://code.activestate.com/recipes/82465-a-friendly-mkdir/

-- Regards, Peng



More information about the Python-Dev mailing list