Mac Users: hidden files on sdcard

eeshuz

Senior Member
Dec 16, 2010
62
10
8
Hi,

I'm sure some if not all mac users have experienced seeing extra hidden files for every file they have transfered to their sdcard from their mac. For example, you copy desktop.jpg onto the sdcard, and along with it will be a 4kb file called ._desktop.jpg. To me that's extremely annoying, especially when I transfer a lot of files and have to delete all the hidden files. Another issue, when doing the same thing but from a mac to an external harddrive or network volume, osx creates a .DS_Store hidden file.

The solutions are here:

sdcard hidden file issue (if you don't have a .bash_profile file in your home folder, just create one and paste the code in the link)

.DS_Store issue

Salut
 

eeshuz

Senior Member
Dec 16, 2010
62
10
8
Actually the information in the thread I linked for 'sdcard hidden file issue' is incorrect/outdated. Here is the proper solution, depending on which version of OSX you are running:

For Mac OSX Tiger (10.4):

Code:
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true

For Mac OSX (Snow) Leopard (10.5, 10.6):

Code:
export COPYFILE_DISABLE=true

In a terminal window, type:

Code:
sudo nano -w ~/.bash_profile
Put in your account's password and hit enter, then paste the applicable export line (Edit/Paste or CMD(apple)+'v'), then hit CTRL+'x' to write/save the file, hit 'y' when prompted with "Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?", then hit enter when prompted with "File Name to Write: /Users/(your_username_here)/.bash_profile".

That's it. Let me know if you have any questions.