listXattrs(of:replyHandler:)
Gets the list of extended attributes currently set on the given item.
Declaration
func listXattrs(of item: FSItem, replyHandler reply: @escaping @Sendable ([FSFileName]?, (any Error)?) -> Void)func xattrs(of item: FSItem) async throws -> [FSFileName]Parameters
- item:
The item from which to get extended attributes.
- reply:
A block or closure to indicate success or failure. If getting the list of extended attributes succeeds, pass the xattrs as an array of Fsfilename instances and a
nilerror. If getting the attriubtes fails, passnilalong with the relevant error. For anasyncSwift implementation, there’s no reply handler; simply return the byte count or throw an error.