Sjmarf to Programmer [email protected] • 5 months ago.DS_Storesh.itjust.worksimagemessage-square163fedilinkarrow-up11.77K
arrow-up11.77Kimage.DS_Storesh.itjust.worksSjmarf to Programmer [email protected] • 5 months agomessage-square163fedilink
minus-square@[email protected]linkfedilink45•5 months agodefaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE Helps a bit.
minus-square@[email protected]linkfedilink9•edit-25 months agoyou can also delete them recursively with find . -name '*.DS_Store' -type f -print -delete (adapted from this script)
minus-squareM.intlinkfedilink10•5 months agoWhy is there a * in front of DS_Store? Seems like fastly made a small mistake find . -name '.DS_Store' -type f -print -delete would just match the exact file and is faster.
minus-squareM.intlinkfedilink1•5 months agoDon’t forget: defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
Helps a bit.
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 mistake
find . -name '.DS_Store' -type f -print -delete
would just match the exact file and is faster.Don’t forget: