Skip to content

XattrEntry

An extended attribute of a filesystem entry.

Yielded by xattrs, and accepted in place of a name by the functions that read and write attribute values.

Fields

flags @ Int

Attribute flags. Windows only.

name @ Str

Attribute name.

Windows may report the name with different casing than it was originally set with.

for attr = xattrs "data.txt"
  echo $attr.name
namespace @ Str

Extended attribute namespace, such as user.

Linux and FreeBSD only.

for attr = xattrs "data.txt" namespace: :ANY:
  echo "$(attr.namespace):$(attr.name)"
size @ Int

Attribute value size in bytes. Windows only.