apple-quarantine-error

Remove apple quarantine error from file

Today when uploading my files to my web server as usual i face some error. Checking the server and i’m sure that there’s no problem with it, soon i suspect there’s must be something error with the tar.gz file produce by my mac.

Turns out after checking the file attribute i see an extra attribute attached to the file. Let’s see what’s the extra attribute is:

Air-2:Downloads air$ ls -l
-rw-r—–@ 1 andreas staff 4595413 Aug 31 10:28 picjumbo.com_HNCK4530.jpg
-rw-r—–@ 1 andreas staff 1279716 Aug 25 19:29 picjumbo.com_HNCK5027.jpg
-rw-r–r–@ 1 andreas staff 104957 Nov 17 19:55 picjumbo.com_HNCK5027a-2.jpg
-rw-r–r–@ 1 andreas staff 104957 Aug 25 19:30 picjumbo.com_HNCK5027a.jpg
-rw-r—–@ 1 andreas staff 5195342 Aug 25 19:15 picjumbo.com_HNCK7820.jpg

 

As we can see, beside the file permission, we got an extra @ on our file; on Mac OS X, downloaded files have an extended attribute on their file permissions, visible by the ‘@’:
These extended attributes can be shown with xattr:

Air-2:Downloads air$ xattr -l picjumbo.com_HNCK3562.jpg
picjumbo.com_HNCK3562.jpg: com.apple.quarantine: 0001;55e3cbc7;Google Chrome.app;2910EF69-8397-4819-886A-E2E2CED7239D

To remove it, is simply by using command:

xattr -d your-file-name-here