lib/magento/Package.php
public function save($path)
    {
        $this->validate();
        $path = rtrim($path, "\\/") . DS;
        $this->_savePackage($path);
        return $this;
    }
public function save($path)
    {
        $this->validate();
        $path = rtrim($path, "\\/") . DS;
        $this->_savePackage($path);
        return $this;
    }
public function save ( $ path ) { $ this -> validate ( ) ; $ path = rtrim ( $ path , "\\/" ) . DS ; $ this -> _savePackage ( $ path ) ; return $ this ; }
Creates a package and saves it

@param string $path
@return Mage_Connect_Package
Creates a package and saves it