Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle persistence flags for extended attributes #43

Open
RhetTbull opened this issue Jul 8, 2021 · 1 comment
Open

Handle persistence flags for extended attributes #43

RhetTbull opened this issue Jul 8, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@RhetTbull
Copy link
Owner

I don't believe persistence flags are properly handled (need to see how xattr deals with these):

https://eclecticlight.co/2020/11/02/controlling-metadata-tricks-with-persistence/

@RhetTbull RhetTbull added the enhancement New feature or request label Jul 8, 2021
@RhetTbull
Copy link
Owner Author

At least on Catalina, attributes with these flags are not properly handled by Finder so they don't show up in Smart Folders, etc. So implementing these may not be worthwhile. From above linked article (and confirmed in my own testing):

The snag is that few Apple engineers seem aware of this valuable feature, so these flags usually aren’t handled correctly. Just as with the Finder now, com.apple.metadata:kMDItemComment#N should be treated as a xattr of type com.apple.metadata:kMDItemComment with the flag N. Instead, it’s treated as a xattr with a different name. Presumably this is because Apple never got round to properly documenting this unique system for managing the persistence of metadata, and it has simply been forgotten. By Apple’s own engineers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant