Pop\Ftp\Ftp::rename PHP Метод

rename() публичный Метод

Rename file.
public rename ( string $old, string $new ) : Ftp
$old string
$new string
Результат Ftp
    public function rename($old, $new)
    {
        if (!ftp_rename($this->conn, $old, $new)) {
            throw new Exception('Error: There was an error renaming the file ' . $old);
        }
        return $this;
    }