The ultimate solution to the problem on the MacOS extended attribute can not be completely deleted (transport from outside the network)

Description link

Chinese currently on the site for "XX file is impossible to turn on the use of MacOS" solutions have

xattr -c *.* //可对目录下所有文件进行附加属性清除
xattr -d com.apple.FinderInfo 文件名

But remount file when found invalid
the following scenario can solve this problem

xattr -wx com.apple.FinderInfo 6861636B00000000000000000000000000000000000000000000000000000000 文件名

Principle is that we will give the file a false property on com.apple.FinderInfoproperty values, so finder mounted hard drive when we will not reassign brok/MACSthe state

Guess you like

Origin blog.csdn.net/The_code_is_poison/article/details/93751369