listXattrs(of:context:replyHandler:)
Gets the list of extended attributes currently set on the given item.
Declaration
func listXattrs(of item: FSItem, context: FSContext, replyHandler reply: @escaping @Sendable (FSListXattrsResult?, (any Error)?) -> Void)func xattrs(of item: FSItem, context: FSContext) async throws -> FSListXattrsResultParameters
- item:
The item from which to get extended attributes.
- context:
An object that enables context-aware file system decisions throughout the operation.
- reply:
A block or closure to indicate success or failure. If getting the list of extended attributes succeeds, pass an instance of Fslistxattrsresult containing the xattrs as an array of Fsfilename instances, along with a
nilerror. If getting the attributes fails, pass the relevant error as the second parameter; FSKit ignores the Fslistxattrsresult instance in this case. For anasyncSwift implementation, there’s no reply handler; simply return the result instance or throw an error.