Jan. 18, 2021
9:49 p.m.
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, that os.makedirs does not set exist_ok to True by default. I have been baffled by this decision, but not following it in pathlib would arguably be an inconsistency.