You must log in or register to comment.
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
Helps a bit.
Don’t forget:
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
you can also delete them recursively with
find . -name '*.DS_Store' -type f -print -delete
(adapted from this script)
Why is there a
*
in front ofDS_Store
?
Seems like fastly made a small mistakefind . -name '.DS_Store' -type f -print -delete
would just match the exact file and is faster.