On this page
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
- Unix-only and process-global.
REPL Inspect
from posix import fchdir
help(fchdir)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/execve Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/fchmod Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/abort Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chflags Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chmod shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chown shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chroot shared tags: #posix, #stdlib