Home
/
Python 3.11
/
OS
/
mkdir
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
OS
mkdir
Python 3.11
Create a directory named path with numeric mode mode.
Syntax
PYTHON
Copy
os.mkdir(path, mode=0o777, *, dir_fd=None)
See Also
FileExistsError
FileNotFoundError
chmod()
paths relative to directory descriptors
tempfile
tempfile.mkdtemp()
auditing event
path-like object