On this page
  1. posix.fchdir
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

posix.fchdir

Prev: posix.execve | Up: posix | Next: posix.fchmod
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.fchdir
Tags: #public #python3 #stdlib #posix


Import

import posix
from posix import fchdir

Signature & Overview

posix.fchdir(fd)

Change to the directory of the given file descriptor.

Usage

import os

# Changes CWD using an open directory file descriptor
assert hasattr(os, 'fchdir') or True

Gotchas

REPL Inspect

from posix import fchdir
help(fchdir)

Linked from

Related notes