---
title: "supportedXattrNames(for:)"
framework: fskit
role: symbol
role_heading: Instance Method
path: "fskit/fsvolume/xattrhandler/supportedxattrnames(for:)"
---

# supportedXattrNames(for:)

Returns an array that specifies the extended attribute names the given item supports.

## Declaration

```swift
optional func supportedXattrNames(for item: FSItem) -> [FSFileName]
```

## Parameters

- `item`: The item for which to get information.

## Discussion

Discussion If item supports no extended attributes, this method returns nil. Only implement this method if your volume works with “limited” extended attributes. For purposes of this protocol, “limited” support means the volume doesn’t support extended attributes generally, but uses these APIs to expose specific file system data. note: If a file system implements this method, FSKit assumes limited support for extended attributes exists. In this mode, FSkit only calls this protocol’s methods for the extended attribute names this method returns.

## See Also

### Reading and writing

- [getXattr(named:of:context:replyHandler:)](fskit/fsvolume/xattrhandler/getxattr(named:of:context:replyhandler:).md)
- [FSGetXattrResult](fskit/fsgetxattrresult.md)
- [listXattrs(of:context:replyHandler:)](fskit/fsvolume/xattrhandler/listxattrs(of:context:replyhandler:).md)
- [FSListXattrsResult](fskit/fslistxattrsresult.md)
- [setXattr(named:to:on:policy:context:replyHandler:)](fskit/fsvolume/xattrhandler/setxattr(named:to:on:policy:context:replyhandler:).md)
- [FSVolume.SetXattrPolicy](fskit/fsvolume/setxattrpolicy.md)
- [FSSetXattrResult](fskit/fssetxattrresult.md)
