【发布时间】:2015-12-16 14:02:11
【问题描述】:
我在名为 BucketA 的存储桶中有一个名为 output 的文件夹。我在output 文件夹中有一个文件列表。如何使用 AWS Java SDK 将它们下载到我的本地计算机?
下面是我的代码:
AmazonS3Client s3Client = new AmazonS3Client(credentials);
File localFile = new File("/home/abc/Desktop/AmazonS3/");
s3Client.getObject(new GetObjectRequest("bucketA", "/bucketA/output/"), localFile);
我得到了错误:
AmazonS3Exception: The specified key does not exist.
【问题讨论】:
标签: java amazon-web-services amazon-s3