extract

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package extract provides utilities for extracting zip files.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidArchive = errors.New("invalid archive")

ErrInvalidArchive indicates the archive is invalid or contains unsafe entries.

Functions

func XenForoZip

func XenForoZip(zipPath, destDir string, onProgress func(current, total int, filename string)) error

XenForoZip extracts a XenForo ZIP file to the destination. It extracts only files from within the "upload/" directory, stripping that prefix. This handles XenForo's ZIP structure where files are under upload/ but there may be other files like README at the root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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