ID EN
OS

mkdir

Python 3.11

Create a directory named path with numeric mode mode.

Syntax

PYTHON
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