bzip2

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package bzip2 implements an Expander for standalone bzip2 compressed files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bzip2Expander

type Bzip2Expander struct {
	FileSizeLimit int64
}

Bzip2Expander decompresses standalone bzip2 files (not tar.bz2).

func (*Bzip2Expander) Expand

func (b *Bzip2Expander) Expand(ctx context.Context, src, dst string, umask os.FileMode) (err error)

Expand decompresses a bzip2 file from src into the dst directory.

func (*Bzip2Expander) Matcher

func (b *Bzip2Expander) Matcher(extension string) bool

Matcher checks if the extension matches supported formats.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL