Questions tagged [extended-attributes]
The extended-attributes tag has no summary.
54 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
71
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
0
answers
100
views
Removing Extended Attributes on SMB share
I’ve been having trouble saving files on some files in some directories on an SMB share (from a Linux server). With experimentation, I get the impression that it has something to do with extended ...
0
votes
1
answer
137
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 ...
2
votes
1
answer
165
views
Preview quarantine madness: it quarantines files as I'm editing them
Preview seems to set the quarantine on files that it opens. Kind of, unpredictably. And, it could be, that quarantine is set randomly through other mechanisms; not sure. Let me illustrate.
I have ...
5
votes
2
answers
928
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....
user avatar
user480875
1
vote
1
answer
451
views
Can't view extended attributes of a directory in MacOs Sonoma with xattr, even though they are flagged in the directory listing
When I do an ls -lg of my user directory I can see a file directory called:
drwx------+ 33 staff 1056 Oct 19 11:09 Movies
Which, as you can see, has a plus sign at the end of the permissions, ...
0
votes
0
answers
312
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 ...
1
vote
1
answer
990
views
Trying to read xattr values on multiple files
In trying to read all the values of the extended attributes on a single file, if I do
xattr -l <filename> | while read ATTR; do
xattr -p $ATTR <filename>
done
I get what I expect. But ...
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 ...
1
vote
3
answers
3k
views
Where are file extended attributes saved?
It seems to be an obvious question, but for some reason I cannot find an answer. Apparently, I just discovered a well-known MacOS feature: extended file attributes.
Context: When I download a file, I ...
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 ...
3
votes
0
answers
501
views
Why does defaults only read from files with certain extended attributes?
It seems that defaults read only works on property list files in certain folders (e.g. Desktop, Downloads) when the extended attribute com.apple.macl contains a specific value otherwise it reports ...
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. ...
2
votes
2
answers
153
views
What happens if you add the attribute "com.apple.icloud.desktop" to just a random folder that lives in your home folder?
Will it start to behave just like Desktop and Documents? Or will it break iCloud drive?
6
votes
0
answers
107
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.