使用 Cloud Storage Transfer 服务对从 S3 传输的存储桶进行 gcsfuse 装载后,发出 ls 命令时无法显示 s3 存储桶。

After gcsfuse mounting of a bucket transferred from S3 using Cloud Storage Transfer service, the s3 bucket fail to show when issuing a ls command.

我使用传输服务将 S3 存储桶传输到 GCS。转移进行得很顺利。从云控制台,我可以看到 s3 存储桶。但是,在我使用 gcsfuse 在 GCE VM 中挂载 GCS 存储桶(其中包含已传输的 s3 存储桶)后,它无法出现在 ls 命令中。

我能解决这个问题吗???

谢谢!

请参阅有关隐式目录的文档 here。您可能有名为 foo/bar 的对象,但 gcsfuse 不会显示名为 foo 的目录,除非您的存储桶中有一个名为 foo/.

的对象

您可以使用 --implicit-directories 解决此问题,但也有缺点。参见上面的link。