PyDocs

Nav

Generic Operating System Services

fchmod

os

functionUnixWindows
  • fchmod(fd, mode)
Change the access permissions of the file given by file descriptor fd.

  fd
    The file descriptor of the file to be modified.
  mode
    Operating-system mode bitfield.
    Be careful when using number literals for *mode*.  The conventional
    UNIX notation for numeric modes uses an octal base, which needs to
    be indicated with a ``0o`` prefix in Python.

Equivalent to os.chmod(fd, mode).
Changed in 3.13
  • 3.13: Added support on Windows.
0 Examples
No examples for os/fchmod.
See Also
No see-alsos for os/fchmod
0 Notes
No notes for fchmod