Get rid of .DS_Store files on your Mac
If you use your Mac for web development, one of the really annoying things you'll notice is that most of the directories in your project will have a file called .DS_Store in them. And you certainly don't won't to copy these files over to your server. (As an aside, these files are created by the Finder to keep track of your viewing preferences for the directory.)
To keep from transferring these files over, you can run a command at the command line of the terminal to delete all of the .DS_Store files before you copy things over. Here's the command to run:
After you run this, all of the .DS_Store in the this directory and all of its subdirectories will be deleted.
To keep from transferring these files over, you can run a command at the command line of the terminal to delete all of the .DS_Store files before you copy things over. Here's the command to run:
find ./ -name ".DS_Store" -depth -exec rm {} \;
After you run this, all of the .DS_Store in the this directory and all of its subdirectories will be deleted.
| Rating: | 100% positive, 3 total Votes |
| Categories: | Mac Finder files .DS_Store |
| Added: | on Aug 03, 2009 at 7:26 am |
| Added By: | an anonymous user |
| Searches: | file .ds_store mac finder run |

