@@ -307,6 +307,9 @@ discard block |
||
307 | 307 | return true; |
308 | 308 | } |
309 | 309 | |
310 | + /** |
|
311 | + * @param string $key |
|
312 | + */ |
|
310 | 313 | protected function getOptions($key, array $options = []) |
311 | 314 | { |
312 | 315 | $options['ACL'] = $this->options['acl']; |
@@ -322,6 +325,9 @@ discard block |
||
322 | 325 | return $options; |
323 | 326 | } |
324 | 327 | |
328 | + /** |
|
329 | + * @return string |
|
330 | + */ |
|
325 | 331 | protected function computePath($key) |
326 | 332 | { |
327 | 333 | if (empty($this->options['directory'])) { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $this->ensureBucketExists(); |
107 | 107 | $options = $this->getOptions( |
108 | 108 | $targetKey, |
109 | - ['CopySource' => $this->bucket . '/' . $this->computePath($sourceKey)] |
|
109 | + ['CopySource' => $this->bucket.'/'.$this->computePath($sourceKey)] |
|
110 | 110 | ); |
111 | 111 | |
112 | 112 | try { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | { |
248 | 248 | $result = $this->service->listObjectsV2([ |
249 | 249 | 'Bucket' => $this->bucket, |
250 | - 'Prefix' => rtrim($this->computePath($key), '/') . '/', |
|
250 | + 'Prefix' => rtrim($this->computePath($key), '/').'/', |
|
251 | 251 | 'MaxKeys' => 1, |
252 | 252 | ]); |
253 | 253 |