xattr

Function

ArgDescriptionType
filenameFilename to inspect.OSPath (required)
attributeAttribute to collect.list of string
accessorFile accessorstring

Required Permissions: FILESYSTEM_READ

Description

Query a file for the specified extended attribute.

If no attributes are provided, this function will return all extended attributes for the file.

Please note: this API is not reliable, so please provided extended attributes where possible.

Note: This function only works on Mac and Linux.