ID EN
Tempfile

mkdtemp

Python 3.11

Creates a temporary directory in the most secure manner possible. There are no race conditions in the directory’s creation. The directory is readable, writable, and searchable only by the creating user ID.

Syntax

PYTHON
tempfile.mkdtemp(suffix=None, prefix=None, dir=None)

See Also

mkdtemp() mkstemp() mkdtemp() mkdtemp() auditing event path-like object