[Python-ideas] Re: pathlib.Path.makedirs

2021-01-18 Thread Cameron Simpson
On 18Jan2021 16:49, Random832 wrote: >On Wed, Jan 13, 2021, at 08:31, Antonio Cavallo wrote: >> I've found myself typing too many time this: >> pathlib.Path("some-dir-name").mkdir(parent=True, exist_ok=True) >> >> Wouldn't be better to have a pathlib.Path.makedirs with parent/exist_ok >> set to Tr

[Python-ideas] Re: pathlib.Path.makedirs

2021-01-18 Thread Random832
On Wed, Jan 13, 2021, at 08:31, Antonio Cavallo wrote: > Hi, > I've found myself typing too many time this: > pathlib.Path("some-dir-name").mkdir(parent=True, exist_ok=True) > > Wouldn't be better to have a pathlib.Path.makedirs with parent/exist_ok > set to True by default? Worth mentioning, th