Skip to content

Commit 648ae24

Browse files
committed
fix: add support to move files onto same path for GridFSAdapterTest
1 parent 827c77d commit 648ae24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/GridFS/GridFSAdapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ public function listContents(string $path, bool $deep): iterable
345345

346346
public function move(string $source, string $destination, Config $config): void
347347
{
348+
if ($source === $destination) {
349+
return;
350+
}
351+
348352
try {
349353
$result = $this->bucket->getFilesCollection()->updateMany(
350354
['filename' => $this->prefixer->prefixPath($source)],

0 commit comments

Comments
 (0)