Package xattr provides a simple interface to user extended attributes on Linux and OSX. Support for xattrs is filesystem dependant, so not a given even if you are running one of those operating systems.
On Linux you have to edit /etc/fstab to include "user_xattr". Also, Linux extended attributes have a manditory prefix of "user.". This is prepended transparently for Get/Set/Remove and hidden in List.
Retrieves extended attribute data associated with path.
Returns whether the error is known to report that a extended attribute does not exist.
Retrieves a list of names of extended attributes associated with path.
Removes the extended attribute.
Associates data as an extended attribute of path.
XAttrError records an error and the operation, file path and attribute that caused it.