ID EN
OS

getxattr

Python 3.11

Return the value of the extended filesystem attribute attribute for path. attribute can be bytes or str (directly or indirectly through the PathLike interface). If it is str, it is encoded with the filesystem encoding.

Syntax

PYTHON
os.getxattr(path, attribute, *, follow_symlinks=True)

See Also

PathLike specifying a file descriptor not following symlinks auditing event path-like object