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.
Click to show internal directories.
Click to hide internal directories.