Questions tagged [extended-attributes]
The extended-attributes tag has no summary.
54 questions
0 votes
1 answer
52 views
How can I set birth time to nanosecond accuracy?
SetFile -d can used to used to set birth time attribute to whole second accuracy. How can I set it to higher accuracy? (nanosecond on APFS or millisecond on ExFAT) % SetFile -d "01/02/2023 18:19:...
0 votes
1 answer
113 views
Why are Extended Attributes added everywhere?
I have just switched a couple of months ago from Sonoma (M1 MBPro) to Sequoia (15.3 and now 15.4.1) (M4 MBPro), and I notice that extended attributes were/are now systematically added almost ...
5 votes
2 answers
892 views
To copy a file and preserve its comment
Is it possible to copy an individual file and preserve its comment? Here is what I have tried. Nothing here works for me on macOS 14.3.1 and Zsh 5.9 (x86_64-apple-darwin23.0). cp file.txt file-copy....
0 votes
0 answers
285 views
Risks of removing Extended Attributes?
I have a multi-GB directory tree of documents that I need to keep synchronized between a macOS and a Linux host. I'm thinking of using xattr on Mac OS to remove extended attributes on every single ...
5 votes
1 answer
1k views
Preserving date added when copying folders
Here is my use case but the question is a general one: how to duplicate a folder and preserve the Date Added info. My Downloads folder is set to Group By and Sort By Date Added. I'd like to clean the ...
2 votes
3 answers
1k views
How to parse values from macOS extended file attributes?
If you download a file from the internet using Safari, some extended attributes are added to the downloaded file, among which com.apple.metadata:kMDItemWhereFroms which contains the original URL of ...
2 votes
1 answer
2k views
Accidentally deleted file from /Library/Preferences/
I have deleted the file com.apple.HIToolbox.plist from /Library/Preferences/ by mistake. I have a copy of the file saved. I hoped the file would be reconstructed after reboot, but that didn't happen. ...
6 votes
0 answers
103 views
Is it possible to mark a folder in the iCloud drive folder as "never offload this"?
I can imagine that there might be an attribute that I could add using xattr, but I have no idea what that attribute would be.