// Open untars source and decompresses the contents into destination.
Open untars source and decompresses the contents into destination.
// Open untars source and decompresses the contents into destination .
func (tarBz2Format) Open(source, destination string) error {
	f, err := os.Open(source)
	if err != nil {
		return fmt.Errorf("%s: failed to open archive: %v", source, err)
	}
	defer f.Close()
	bz2r, err := bzip2.NewReader(f, nil)
	if err != nil {
		return fmt.Errorf("error decompressing %s: %v", source, err)
	}
	defer bz2r.Close()
	return untar(tar.NewReader(bz2r), destination)
}
func ( tarBz2Format ) Open ( source , destination string ) error { f , err := os . Open ( source ) if err != nil { return fmt . Errorf ( " " , source , err ) } defer f . Close ( ) bz2r , err := bzip2 . NewReader ( f , nil ) if err != nil { return fmt . Errorf ( " " , source , err ) } defer bz2r . Close ( ) return untar ( tar . NewReader ( bz2r ) , destination ) }
Open untars source and decompresses the contents into destination.
Open untars source and decompresses the contents into destination .