extract

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 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

This section is empty.

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. Unsafe paths, symlinks, and oversized entries are rejected. onProgress, when non-nil, reports each non-root entry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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