I am working on a MacBook Air (10.14.6), using network mounted filesystems. It then happens that for no reason at all files like
.DS_Store
._.DS_Store
appear randomly in folders, breaking my workflow. This is especially annoying if they appear in a git repository and you have to remove them manually.
Therefore my simple question:
How can I prevent once and for all the creation of these useless and annoying files?
An answer provided in another thread was to use the following commands:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
Maybe it does work for network mounted filesystems, but for the local filesystem it does not seem to work.
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
anddefaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
does not solve my problem. The files are back! – Alex Sep 11 '20 at 13:55