PyDocs

Nav

Generic Operating System Services

listxattr

os

function
  • listxattr(path=None, *, follow_symlinks=True)
Return a list of extended attributes on path.

path may be either None, a string, a path-like object, or an open file
descriptor.  If path is None, listxattr will examine the current
directory.
If follow_symlinks is False, and the last element of the path is
a symbolic link, listxattr will examine the symbolic link itself instead
of the file the link points to.
Changed in 3.6, 3.15
  • 3.6: Accepts a path-like object.
  • 3.15: os.listxattr(-1) now fails with OSError(errno.EBADF) rather than listing extended attributes of the current directory.
0 Examples
No examples for os/listxattr.
See Also
No see-alsos for os/listxattr
0 Notes
No notes for listxattr