Thursday, May 7, 2009

Begone, ._whatever!

So Finder in OSX has this quirky habit of creating a ._blah for every blah file when transferring file between operating systems, due to the AppleDouble system and resource forking. (No idea what those mean exactly, but you can always ask Google.)

David Olinsky left this nugget of a solution as a comment here:

export COPY_EXTENDED_ATTRIBUTES_DISABLE=true

UPDATED: as well as this attribute, introduced in Leopard as noted by nzight:

export COPYFILE_DISABLE=true

Thank goodness! Now stick those in your .bash_profile...

Oh and to remove those blasted files:

> find . -iname '._*' -exec rm -rf {} \;