Skip to content

Commit 75b925e

Browse files
committed
Merge 0d385781809a6f3c319de912087ef476491f597f into b744e8b35a4e96e9e61f8c9a4191b4e6270ad3ec
1 parent 5164fa0 commit 75b925e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Adapters/DatabaseAdapter.php

+10
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,11 @@ public function listContents(string $path, bool $deep): iterable
471471
*/
472472
public function move(string $source, string $destination, Config $config): void
473473
{
474+
// Skip when source and destination are the same...
475+
if ($source === $destination) {
476+
return;
477+
}
478+
474479
try {
475480
// Copy the file
476481
$this->performCopy($source, $destination, $config);
@@ -487,6 +492,11 @@ public function move(string $source, string $destination, Config $config): void
487492
*/
488493
public function copy(string $source, string $destination, Config $config): void
489494
{
495+
// Skip when source and destination are the same...
496+
if ($source === $destination) {
497+
return;
498+
}
499+
490500
try {
491501
$this->performCopy($source, $destination, $config);
492502
} catch (Throwable $e) {

0 commit comments

Comments
 (0)