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

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jul 20 01:11:19 CEST 2010


Ray Allen wrote:

I think both os.mkdir() and os.makedirs() should add a keyword argument to suppress the "OSError: [Errno 17] File exists".

This could be seen as violating the "no constant arguments" guideline. Maybe separate function would be better?

-- Greg



More information about the Python-Dev mailing list