gpt4 book ai didi

visual-studio-code - 如何使用 VS Code 直接在 Google Cloud Storage 上编辑文件?

转载 作者:行者123 更新时间:2023-12-04 14:15:38 27 4
gpt4 key购买 nike

有没有办法直接将文件加载/编辑/保存到 Google Cloud Storage 中的给定存储桶,而无需下载文件、编辑它,然后再次上传?

我们有一个 GCS 存储桶,里面有大约 20 个我们出于各种原因编辑的配置文件。我们真的很想将存储桶加载到 VS Code 中,然后在更新文件和保存编辑之间进行浏览。

我已经尝试了 VS Code 的 vscode-bucket-explorer 扩展,但这似乎只是提供了没有编辑/保存功能的查看功能。除非我错过了什么?

有没有办法在 Mac 上将存储桶安装为驱动器?具有读/写能力?

最佳答案

有没有办法直接将文件加载/编辑/保存到给定的存储桶
在 Google Cloud Storage 中,无需下载文件,编辑然后再次上传


不可以,无法就地编辑 Google Cloud Storage 中的 blob 对象。

As with buckets, existing objects cannot be directly renamed. Instead, you can copy an object, give the copied version the desired name, and delete the original version of the object. See Renaming an object for a step-by-step guide, including instructions for tools like gsutil and the Google Cloud Console, which handle the renaming process automatically.



有没有办法在 Mac 上将存储桶安装为驱动器?带读/写
能力?


您可以使用 Cloud Storage FUSE其中挂载的存储桶的行为类似于永久磁盘。

Cloud Storage FUSE is an open source FUSE adapter that allows you to mount Cloud Storage buckets as file systems on Linux or macOS systems. It also provides a way for applications to upload and download Cloud Storage objects using standard file system semantics. Cloud Storage FUSE can be run anywhere with connectivity to Cloud Storage, including Google Compute Engine VMs or on-premises systems

关于visual-studio-code - 如何使用 VS Code 直接在 Google Cloud Storage 上编辑文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60573887/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com