2010
04.05

Self note: if file copy fails with an “The operation can’t be completed because you don’t have permission to access some of the items” error message, this is because of extensions attached (usually Finder comments).

Anyway straight to the solution:

You could either remove that specific extension from file by

xattr -d 'com.apple.metadata:kMDItemFinderComment' <file pattern>

or

cp -X <source> <destination>

omitting extended attributes (EAs).

There you have it.

Comments are closed.