Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

.DS_store files

nullx86

macrumors 6502a
Original poster
Jun 26, 2009
884
0
Wilmington/Jacksonville, NC
Ok, so I went and transferred some files from my iMac to my W2K8 server, and in each folder that got transferred, is a .DS_STORE file. Last time I did an overhaul on my server, the .DS_STORE files caused file transfers to crash, and give some serious errors. Does anyone know how to stop the files from writing?
 

nullx86

macrumors 6502a
Original poster
Jun 26, 2009
884
0
Wilmington/Jacksonville, NC
I know theyre required by OS X, and its not in OS X that theyre causing an issue in. Only on my W2k8 box. I just did a google and found a page on Apple's Support site that should have turned off writing DS_Store files on network storage.
 
Comment

nullx86

macrumors 6502a
Original poster
Jun 26, 2009
884
0
Wilmington/Jacksonville, NC
So does anyone know how to disable writing on remote media? I did the command line trick, and even copied the plist from ~/Library/Prefs to /library/prefs, but the DS_STORE files are still writing to the remote server. Hell, even trying to rm -i them doesnt work. It will get rid of the top level folders DS_Stores, but any folders within those folders will still have them. Really not too happy about it.
 
Comment

angelwatt

Moderator emeritus
Aug 16, 2005
7,852
7
USA
There's is a preference that can be used to stop the creation of these files on network drives.

Here's a Terminal command that will delete all .DS_Store files recursively. Just use the cd command to go to the directory you want it to affect first.

Code:
find . -name '.DS_Store' -delete
Alternatively, you can use the rsync command, which includes and "exclude" argument where you can specify the DS file as one not to copy.
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.