OSX Quick Tip: Prevent .ds_store files being written on network shares
Posted June 28th, 2010 in OSX and Quick Tips
When using network shares (e.g. from Samba or Windows servers) on OSX .DS_Store files will be written out when accessing directories. This post shows how to prevent this from happening.
Prevent .DS_Store files being written
Open up a terminal and enter the following command:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Now those pesky .DS_Store files will no longer be written.
If for some reason you want to restore the default behavior then run the command again changing "true" to "false".
Related posts:
- Fix "the operation can't be completed because you don't have permission to access some of the items" error on OSX (Sunday, June 20th 2010)
- OSX Quick Tip: Show all files in the Finder including dot files (Monday, June 14th 2010)

Comments
blog comments powered by Disqus