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.
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率

首页/
已采纳
使用S3 Golang SDK从S3下载选择性文件
收起
- 写回答
- 好问题 0 提建议
- 关注问题
微信扫一扫
点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
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.
本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏举报微信扫一扫
点击复制链接分享
编辑预览轻敲空格完成输入- 显示为
- 卡片
- 标题
- 链接
评论按下Enter换行,Ctrl+Enter发表内容
编辑
预览

轻敲空格完成输入
- 显示为
- 卡片
- 标题
- 链接
报告相同问题?
提交
- 2019-02-06 05:55回答 1 已采纳 We can set Credentials: credentials.AnonymousCredentials when creating session. Following is the w
- 2016-10-26 10:43回答 1 已采纳 Well, Expires is just the wrong field: // The date and time at which the object is no longer c
- 2019-01-29 03:34回答 1 已采纳 Try altering your NewDownLoader() to this. See https://docs.aws.amazon.com/sdk-for-go/api/service
- 2021-08-21 02:50云存储服务则是另一个Golang的亮点项目,包括小文件存储、块存储和通用存储,大部分兼容Amazon S3接口。除了存储引擎采用C/C++,SDK用Java实现,其余组件均用Golang编写,这体现了Golang在构建大规模分布式系统中的...
- 2018-03-27 14:37回答 4 已采纳 There is no way to do what you want. The only ways to get a private object are: Use the bucket a
- 2017-10-04 14:16回答 1 已采纳 This is how you get presigned URLs using the go sdk: func GetFileLink(key string) (string, error)
- 2016-03-25 09:04回答 3 已采纳 There is a bug on the aws-go-sdk but the solution is to change the region to "us-east-1" // Set u
- 2024-09-10 08:32心言星愿的博客 简介:本教程旨在指导Go语言开发者如何使用AWS KMS服务对Amazon S3存储桶中的文件进行安全加密和解密。文章涵盖了AWS环境配置、必要的库导入、创建AWS会话、管理KMS密钥、文件的加密上传和解密下载等关键步骤,并...
- 2016-05-26 11:57回答 1 已采纳 There's no reason to read the entire file into memory. Just provide the Body field with the file i
- 2019-03-27 21:47回答 1 已采纳 You can make use of the HeadObject, which contains the header Content-Length. HeadObject API o
- 2016-12-16 19:53回答 1 已采纳 After POST to your API, images are temporarily saved in a OS's temp directory (different for diffe
- 2022-07-26 02:11InterestingFigure的博客 例如,已通过RAMPolicy或者BucketPolicy将Bucket内的所有Object或者与指定Prefix匹配的Object的...文档地址https//docs.aws.amazon.com/zh_cn/sdk-for-go/?github地址https//github.com/aws/aws-sdk-go。............
- 2024-06-19 01:34翟苹星Trustworthy的博客 加速云存储迁移——S3断点续传迁移V2项目推介 amazon-s3-resumable-uploadS3 Resumable Migration Version 2 ( S3 断点续传迁移 Version 2)项目地址:...
- 2022-07-26 08:03InterestingFigure的博客 使用分段上传可提供以下优势:建议您按以下方式使用分段上传:分段上分为三个步骤:开始上传、上传对象分段,以及在上传所有分段后完成分段上传。当您发送请求以开始分段上传时,Amazon S3 将返回具有上传 ID 的响应...
- 2022-04-12 02:28骑台风走的博客 1.1 下载golang 国内官网https://golang.google.cn/dl/ 1.2 下载goland(ide) goland下载(ide)https://www.jetbrains.com/go/ 1.3 环境搭建教程 pass 2. HelloWord package main import "fmt" func main() ...
- 没有解决我的问题, 去提问
联系我们(工作时间:8:30-22:00)
400-660-0108kefu@csdn.net在线客服
- 京ICP备19004658号
- 经营性网站备案信息
公安备案号11010502030143
- 营业执照
- 北京互联网违法和不良信息举报中心
- 家长监护
- 中国互联网举报中心
- 网络110报警服务
- Chrome商店下载
- 账号管理规范
- 版权与免责声明
- 版权申诉
- 出版物许可证
- ©1999-2025北京创新乐知网络技术有限公司