Documentation
¶
Overview ¶
Package archive provides utilities for working with archive formats, currently supporting ZIP extraction.
The package focuses on safe and reliable archive extraction with proper path handling and directory structure preservation. It includes security measures to prevent path traversal attacks and ensures proper file permissions are maintained.
Current functionality:
- ZIP archive extraction with full directory structure preservation
- Safe path handling to prevent directory traversal attacks
- Automatic parent directory creation
- Proper file permission preservation
Example usage:
err := archive.Unzip("archive.zip", "/path/to/extract")
if err != nil {
log.Fatal("Failed to extract archive:", err)
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.