OSX Finder 中内置的“立即下载”和“删除下载”上下文菜单项通常是 iCloud 功能,允许用户在 Finder 中下载或“取消”下载同步的 iCloud 文件。
当用户机器上安装了 Box 时,这些菜单命令的操作方式相同。我希望我能找到可以从命令行实现此目的的终端命令,我找到了这些命令:
brctl download [FilePathHere]
brctl evict [FilePathHere]
但是,当文件夹是 Box 共享文件夹时,它们会失败:
brctl: Unable to evict item at path '[FilePathHere]':
Error Domain=BRCloudDocsErrorDomain Code=6 "Path is
outside of any CloudDocs app library, will never sync"
UserInfo={NSDescription=Path is outside of any CloudDocs
app library, will never sync, NSFilePath=[FilePathHere]}
我是否需要安装 Box CLI 才能以不同的方式控制这些功能?或者有其他解决方案吗?