src/Viserio/Component/Filesystem/FilesystemAdapter.php
public function moveDirectory(string $directory, string $destination, array $options = []): bool
    {
        $overwrite = $options['overwrite'] ?? false;

        if ($overwrite && $this->isDirectory($destination) && ! $this->deleteDirectory($destination)) {
            return false;
        }

        $copy = $this->copyDirectory(
            $directory,
            $destination,
            ['visibility' => $this->getVisibility($directory)]
        );
        $delete = $this->deleteDirectory($directory);

        return ! (! $copy && ! $delete);
    }
public function moveDirectory(string $directory, string $destination, array $options = []): bool
    {
        $overwrite = $options['overwrite'] ?? false;

        if ($overwrite && $this->isDirectory($destination) && ! $this->deleteDirectory($destination)) {
            return false;
        }

        $copy = $this->copyDirectory(
            $directory,
            $destination,
            ['visibility' => $this->getVisibility($directory)]
        );
        $delete = $this->deleteDirectory($directory);

        return ! (! $copy && ! $delete);
    }
{@inheritdoc}