Mac OS OneDrive 无法同步.DS_Store文件 出错

Mac OS OneDrive 无法同步.DS_Store文件 同步出错

解决方案:

第一步:打开 terminal 窗口,到本地同步的目录下:

cd "/Users/gkjglobal/GKJ Global/"   #改成自己的本地同步目录

 

第二步:执行:查找和删除

find . -type f -name '.DS_Store' -exec rm {} \;

 

.DS_Store是用于记录 MAC 系统当前文件上次打开位置的信息,如果你不关注,可以通过系统设置进行关闭此项功能,以禁止该文件再次产生:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true

 

posted @ 2019-01-26 22:00  顾式传说  阅读(1003)  评论(0编辑  收藏  举报