ID EN
OS

fchdir

Python 3.11

Change the current working directory to the directory represented by the file descriptor fd. The descriptor must refer to an opened directory, not an open file. As of Python 3.3, this is equivalent to os.chdir(fd).

Syntax

PYTHON
os.fchdir(fd)

See Also

auditing event Availability