Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-39470: Indicate that ``os.makedirs`` is equivalent to ``Path.mkdir`` #18216

Open
wants to merge 2 commits into
base: master
from

Conversation

@nanjekyejoannah
Copy link
Contributor

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

@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
@nanjekyejoannah nanjekyejoannah requested a review from pitrou Jan 28, 2020
@terrdavis

This comment has been minimized.

Copy link

terrdavis commented Jan 29, 2020

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

This comment has been minimized.

Copy link
Contributor Author

nanjekyejoannah commented Jan 29, 2020

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
Projects
None yet
4 participants
You can’t perform that action at this time.