unrar

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFile added in v1.0.2

func ExtractFile(ctx context.Context, targetDirectory string, filename string, reporter progress.Reporter) error

ExtractFile extracts a RAR archive file

func ExtractFromReader

func ExtractFromReader(ctx context.Context, targetDirectory string, stream io.Reader, reporter progress.Reporter) error

ExtractFromReader writes a RAR stream to a temporary file, then extracts it. RAR files require seeking so cannot be streamed directly.

func TopLevelEntries added in v1.2.0

func TopLevelEntries(ctx context.Context, filename string, limit int) ([]string, error)

TopLevelEntries returns the unique top-level path components in a RAR archive.

Types

This section is empty.

Jump to

Keyboard shortcuts

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