decompress

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Overview

Package decompress provides zip, tar, gzip and webarchive decompression/unpacking

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arcpath

func Arcpath(base, path string) string

per https://github.com/richardlehane/siegfried/issues/81 construct paths for compressed objects acc. to KDE hash notation

func IsArc

func IsArc(ids []core.Identification) config.Archive

func SetDroid

func SetDroid()

Types

type Decompressor

type Decompressor interface {
	Next() error // when finished, should return io.EOF
	Reader() io.Reader
	Path() string
	MIME() string
	Size() int64
	Mod() time.Time
	Dirs() []string
}

func New

func New(arc config.Archive, buf *siegreader.Buffer, path string, sz int64) (Decompressor, error)

Jump to

Keyboard shortcuts

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