fixed bucketname in download operation
This commit is contained in:
parent
d94e7f529e
commit
9c43a86630
|
@ -112,7 +112,8 @@ public class S3PluginManager extends TransportManager {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object get(Download download) throws FileNotFoundException, IOException {
|
public Object get(Download download) throws FileNotFoundException, IOException {
|
||||||
return BucketOperator.getInstance(s3).getObject(bucket, Utils.convertToS3Format(download.getResource().getRemotePath()), download.getLocalPath());
|
String bucketName=Utils.convertToS3Format(download.getResource().getRootPath());
|
||||||
|
return BucketOperator.getInstance(s3).getObject(bucketName, Utils.convertToS3Format(download.getResource().getRemotePath()), download.getLocalPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue