Skip to content

Conversation

@nanjekyejoannah
Copy link
Contributor

@nanjekyejoannah nanjekyejoannah commented Jan 27, 2020

:func:os.makedirs is equivalent to mkdir -p and :meth:Path.mkdir() when given an optional
exist_ok argument.

https://bugs.python.org/issue39470

@bedevere-bot bedevere-bot added docs Documentation in the Doc dir awaiting core review labels Jan 27, 2020
@nanjekyejoannah nanjekyejoannah changed the title Indicate that os.makedirs is equivalent to Path.mkdir bpo-39470: Indicate that os.makedirs is equivalent to Path.mkdir Jan 27, 2020
@terrdavis
Copy link

I believe the note should read:

... when the parents argument is True.

Both of these have an exist_ok argument, but only Path.mkdir has the parents argument.
I confirmed that the behaviors map accordingly as well.

Is there some way to specify this in the table?
Like Path.mkdir when parents=True?

@nanjekyejoannah
Copy link
Contributor Author

Is there some way to specify this in the table?

The table convention is such that those details are not included e.g mkdir they dont detail the -p.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants