【问题标题】:How to mount only a specified directory in a Box by using WebDav如何使用 WebDav 仅在 Box 中挂载指定目录
【发布时间】:2015-01-26 12:31:14
【问题描述】:

我可以通过使用davfs2 和如下厨师食谱来挂载我的Box 帐户:

mount "/mnt/box" do
  device "https://dav.box.com/dav"
  fstype "davfs"
  options "rw"
end

使用此代码,我的 Box 帐户中的所有文件和目录都已挂载。 我想知道有没有办法只挂载我的 Box 帐户中的指定文件夹?

【问题讨论】:

  • 我可能错了(不使用 davfs)但不能在 uri 中吗? (即:device "https://dav.box.com/dav/<folder>"
  • 哦,原来这么简单!我能行。如果您写回复作为答案,我会接受。谢谢!

标签: chef-infra webdav box


【解决方案1】:

(作为问题列表健全性的答案发布:))

我可能是错的(不使用 davfs)但它不能在 uri 中吗?

mount "/mnt/box" do
  device "https://dav.box.com/dav/<folder>"
  fstype "davfs"
  options "rw"
end

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-01-15
    • 1970-01-01
    • 1970-01-01
    • 2010-10-02
    • 2012-11-04
    • 1970-01-01
    • 2010-11-09
    相关资源
    最近更新 更多