How to remove extended attributes from all files in a folder on mac
i'm trying to remove the extended attributes from some files (where froms) in a folder on my mac. I could not find a solution for that. Is there a way to remove the attributes from all files in a folder? Kind regards Bijo
Solution 1:
To Remove All Extended Attributes On Many Files
To recursively remove extended attributes on all files in a directory, combine the
-c
"clear" flag with the-r
recursive flag:xattr -rc /path/to/directory
Open
Terminal.app
and start typingxattr -rc
, include a trailing space, and then then drag the file or folder to theTerminal.app
window and it will automatically add the full path with proper escaping.
Source: Taken form cwd's answer to: How do I remove the “extended attributes” on a file in Mac OS X?