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 10: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.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报