Skip to content

Commit 0184b12

Browse files
authored
Merge branch '5.x' into refactor/code-base
2 parents df81a37 + a0f2f31 commit 0184b12

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Storage/Service/S3Service.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,13 @@ public function move(string $source, string $target): bool
231231
*/
232232
public function copy(string $source, string $target): bool
233233
{
234-
$result = $this->get($source);
234+
$content = $this->get($source);
235+
236+
if($content === null){
237+
return false;
238+
}
235239

236-
$this->put($target, $result["Body"]);
240+
$this->put($target, $content);
237241

238242
return true;
239243
}

0 commit comments

Comments
 (0)