Why do I get files like ._foo in my tarball on OS X?
Problem
When I tar certain files in OS X: It produces an extra file in the tarball: which only shows up if I extract it on a non-Mac operating system. But doesn't exist on my file system! What's going on? How can I get rid of it?
Error Output
tar cvf foo.tar foo
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Why do I get files like ._foo in my tarball on OS X?
OS X's tar uses the AppleDouble format to store extended attributes and ACLs. OS X's tar also knows how to convert the ._ members back to native formats, but the ._ files are usually kept when archives are extracted on other platforms. You can tell tar to not include the metadata by setting COPYFILE_DISABLE to some value: The copyfile functions are described in shows the keys and sizes of extended attributes, prints ACLs lists the keys and values of extended attributes clears all extended attri…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix