PyDocs
Standard Library
(3.15.2)
Quick Reference
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
File and Directory Access
filecmp
fnmatch
glob
linecache
os.path
pathlib
pathlib.types
shutil
stat
tempfile
All modules
PyDocs
Standard Library
Quick Ref
Log In
Staging: this is not the live site, pydocs.org.
PyDocs
Standard Library
Quick Ref
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
File and Directory Access
filecmp
fnmatch
glob
linecache
os
path
pathlib
types
shutil
stat
tempfile
All modules
Path.mkdir
pathlib
method of
Path
(
source
)
Path.mkdir(mode=0o777, parents=False, exist_ok=False, *, parent_mode=None)
Create a new directory at this given path.
© Python Software Foundation.
PSF License Version 2
·
Official docs ↗
Changed in 3.5, 3.15
3.5:
The exist_ok parameter was added.
3.15:
The parent_mode parameter.
0 Examples
No examples for pathlib/Path.mkdir.
Log in
to add an example
See Also
No see-alsos for
pathlib/Path.mkdir
Log in
to add a see-also
0 Notes
No notes for
Path.mkdir
Log in
to add a note