Gaufrette\Adapter\Sftp::rename PHP Method

rename() public method

public rename ( $sourceKey, $targetKey )
    public function rename($sourceKey, $targetKey)
    {
        $sourcePath = $this->computePath($sourceKey);
        $targetPath = $this->computePath($targetKey);
        $this->ensureDirectoryExists(\Gaufrette\Util\Path::dirname($targetPath), true);
        return $this->sftp->rename($sourcePath, $targetPath);
    }