文件夹未显示在存储桶存储中 [英] Folders not showing up in Bucket storage

查看:85
本文介绍了文件夹未显示在存储桶存储中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我的问题是a挂载时有几个文件没有显示在gcsfuse中.我可以在在线控制台中看到它们,如果我使用gsutils也可以看到它们. 另外,如果我在存储桶中手动创建文件夹,则可以看到其中的文件,但是我需要先创建它.有什么建议?

gs://mybucket/ dir1/ ok.txt dir2 lafu.txt

如果我使用gcsfuse挂载mybucket并执行"ls",则仅返回dir1/ok.t​​xt. 然后,在安装点的根目录dir1内创建文件夹dir2,突然出现"lafu.txt".

解决方案

默认情况下,gcsfuse不会显示由名称中带有斜杠的文件隐式"定义的目录.例如,如果您的存储桶中包含一个名为dir/foo.txt的对象,除非还有一个名为dir/的对象,否则您将无法找到它.

您可以通过设置--implicit-dirs标志来解决此问题,但是有充分的理由说明为什么这不是默认设置.有关更多信息,请参见文档. >

So my problem is that a have a few files not showing up in gcsfuse when mounted. I see them in the online console and if I 'ls' with gsutils. Also, if If I manually create the folder in the bucket, i then can see the files inside it, but I need to create it first. Any suggestions?

gs://mybucket/ dir1/ ok.txt dir2 lafu.txt

If I mount mybucket with gcsfuse and do 'ls' it only returns dir1/ok.txt. Then I'll create the folder dir2 inside dir1 at the root of the mounting point, and suddenly 'lafu.txt' shows up.

解决方案

By default, gcsfuse won't show a directory "implicitly" defined by a file with a slash in its name. For example if your bucket contains an object named dir/foo.txt, you won't be able to find it unless there is also an object nameddir/.

You can work around this by setting the --implicit-dirs flag, but there are good reasons why this is not the default. See the documentation for more information.

这篇关于文件夹未显示在存储桶存储中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆