### Get System Metadata Source: https://github.com/sindresorhus/extendedattributes/blob/main/readme.md Access system-specific metadata, such as the item creator, for a file URL. ```swift import ExtendedAttributes let fileURL = URL(filePath: "/path/to/file") let itemCreator = try? fileURL.systemMetadata.get(kMDItemCreator as String) ``` -------------------------------- ### Get Extended Attribute Data Source: https://github.com/sindresorhus/extendedattributes/blob/main/readme.md Retrieve data for a specific extended attribute associated with a file URL. ```swift import ExtendedAttributes let fileURL = URL(filePath: "/path/to/file") let data = try? fileURL.extendedAttributes.get("com.example.attribute") ``` -------------------------------- ### Add ExtendedAttributes to Package.swift Source: https://github.com/sindresorhus/extendedattributes/blob/main/readme.md Add this Swift Package Manager dependency to your Package.swift file. ```swift .package(url: "https://github.com/sindresorhus/ExtendedAttributes", from: "1.1.0") ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.