lixianshengfitting

 在写自动化的过程中,需要压缩文件,将压缩文件上传到系统后,总是提示文件压缩层级错误。

所以查看待压缩目录:

 

多出来 ‘.DS_Store’这个。

解决方法:

 查找并删除.DS_Store:

find . -name \'*.DS_Store\' -type f -delete

 设置不生成.DS_Store:

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

分类:

技术点:

相关文章:

  • 2021-08-17
  • 2022-02-07
  • 2022-01-18
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-12-02
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案