PyDocs

Nav

Generic Operating System Services

setxattr

os

function
  • setxattr(path, attribute, value, flags=0, *, follow_symlinks=True)
Set extended attribute attribute on path to value.

path may be either a string, a path-like object,  or an open file
descriptor.
If follow_symlinks is False, and the last element of the path is
a symbolic link, setxattr will modify the symbolic link itself instead
of the file the link points to.
Changed in 3.6
  • 3.6: Accepts a path-like object for path and attribute.
0 Examples
No examples for os/setxattr.
See Also
No see-alsos for os/setxattr
0 Notes
No notes for setxattr