[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

Antoine Pitrou report at bugs.python.org
Tue May 27 22:48:31 CEST 2014


Antoine Pitrou added the comment:

Le 27/05/2014 20:32, Barry A. Warsaw a écrit :
>
> I've just been writing some new code to use pathlib and ran into
> this
one myself. An exist_ok=False is fine, although it's a slight shame that
for backward compatibility we can't adopt os.makedirs() signature exactly.

What do you mean by that? The os.makedirs() signature is 
os.makedirs(name, mode=0o777, exist_ok=False)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21539>
_______________________________________


More information about the Python-bugs-list mailing list