/** * Rename a remote file * * @param string $from * @param string $to * @return bool * * @throws \Icewind\SMB\Exception\NotFoundException * @throws \Icewind\SMB\Exception\AlreadyExistsException */ public function rename($from, $to) { $this->connect(); return $this->state->rename($this->buildUrl($from), $this->buildUrl($to)); }