src/File.php
public function copyTo(Storage $destination, ?int $constraints = null): self
    {
        if (!$this->copyFileTo($destination, $constraints)) {
            throw new AccessDeniedException('unable to copy file', 403);
        }

        return new static($destination);
    }
public function copyTo(Storage $destination, ?int $constraints = null): self
    {
        if (!$this->copyFileTo($destination, $constraints)) {
            throw new AccessDeniedException('unable to copy file', 403);
        }

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