【问题标题】:unstow directory causes warningunstow 目录导致警告
【发布时间】:2020-04-18 21:06:31
【问题描述】:

当我跑步时:

stow -D folderName

我明白了:

WARNING! unstowing folderName would cause conflicts:
  * existing target is neither a link nor a directory: .DS_Store
All operations aborted.

我该如何解决?我找到了this tip,但是没看懂

【问题讨论】:

    标签: macos shell gnu symlink


    【解决方案1】:

    也许尝试在stow之前执行此命令:

    find folderName -name ".DS_Store" -depth -exec rm -f {} \;
    

    这将删除 folderName 中的所有 .DS_Store 文件,这似乎是导致问题的原因。

    【讨论】:

    • 谢谢,它有效!你知道为什么我看到隐藏文件也看不到 .DS_Store 文件吗?
    • @vila:不客气!从 10.14 开始真正查看 .DS_Store 文件的唯一方法是在终端中使用带有 ls-a 选项(例如 ls -a)。
    猜你喜欢
    • 2023-04-04
    • 2019-10-31
    • 2017-06-11
    • 2015-04-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多