Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

EricBrian

macrumors 6502a
Original poster
Is there a way to prevent .DS_Store files being written to folders? They are annoying and interfering with my CVS projects.

Thanks! 🙂
 
AFAIK you can't stop it being written - it's used by the finder to store where icons are placed etc. As others have said you can get it to be ignored.

.DS_Store is also a PITA if you use a mac on windows shares. It's invisible to mac users but shows up to windows users. IIIRC however windows uses it's own hidden files and the reverse situation is true.
 
caveman_uk said:
AFAIK you can't stop it being written - it's used by the finder to store where icons are placed etc.
From the links I posted, this will stop them from being written on network shares, but there are things you lose, like Finder comments.

  1. Open the Terminal.
  2. Type:
    Code:
    defaults write com.apple.desktopservices DSDontWriteNetworkStores true
  3. Press Return.
  4. Restart the computer.
B
 
From the links I posted, this will stop them from being written on network shares, but there are things you lose, like Finder comments.

  1. Open the Terminal.
  2. Type:
    Code:
    defaults write com.apple.desktopservices DSDontWriteNetworkStores true
  3. Press Return.
  4. Restart the computer.
B

Doesn't that only work on network volumes?
 
I think OnyX (free) also has an option to disable .DS_Store creation, if you don't like the command line, and it has a lot of other cool things too.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.