dppx9253 2019-03-21 22:54
浏览 437
已采纳

使用S3 Golang SDK从S3下载选择性文件

I am using Golang SDK to communicate with AWS S3. I want to download only those files from a folder, that ends with .txt or .lib.

  • 写回答

1条回答 默认 最新

  • dongmacuo1193 2019-03-22 02:14
    关注

    AWS SDK does not have this possibility. You can list objects in a bucket, filter the output based on your needs and get a single object using getObject. see here GetObject and here ListObjects

    Another option can be to mount AWS S3 bucket on your machine/server using e.g. s3fs-fuse and filter the files you need in order to get the list to download.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部