expand

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCompressedFile

func IsCompressedFile(filePath string) (bool, error)

func IsTarFile

func IsTarFile(filePath string) (bool, error)

IsTarFile checks whether the file at filePath is a tar archive by reading the standard tar magic bytes at offset 257 ("ustar\0" or "ustar ").

func RegisterExpander

func RegisterExpander(e Expander)

Types

type ExpandOptions

type ExpandOptions struct{}

type Expander

type Expander interface {
	Expand(ctx context.Context, source string, destination string, umask os.FileMode) error
	Matcher(extension string) bool
}

func GetExpander

func GetExpander(extension string) Expander

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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