src/File.php
public function moveTo(Storage $destination, ?int $constraints = null): self
    {
        // actual move file to file: use native functions if possible
        if (!$this->moveFileTo($destination, $constraints)) {
            throw new AccessDeniedException('unable to move file', 403);
        }

        return new static($destination);
    }
public function moveTo(Storage $destination, ?int $constraints = null): self
    {
        // actual move file to file: use native functions if possible
        if (!$this->moveFileTo($destination, $constraints)) {
            throw new AccessDeniedException('unable to move file', 403);
        }

        return new static($destination);
    }
copy file-content to new destination
@param Storage\Disk $destination
@param int|null $constraints
@return self new File-object
@throws AccessDeniedException|FileNotFoundException