Avoid finder hang when connect to smb server in MacOS 10.14
There might be some bugs in the .DS_Store. So first stop the .DS_Store creation in your MacOS:
1 |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE |
Then remove all .DS_Store files on your smb folders:
If you want to see the files you want to remove, try:
1 |
find -name ".*" -exec echo '{}' ';' |
And do it with:
1 |
find -name ".DS_Store" -exec rm '{}' ';' |
Also you will find more other hidden files like ‘._.DS_Store‘, you should also remove them.