Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMaxDecompressSize = 100 * 1024 * 1024 * 1024 // 100 GB
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
Decompress takes the path to a .tar.gz file and decompresses it into the specified directory.
func DecompressInPlace ¶
DecompressInPlace takes the path to a .tar.gz file and decompresses it into the same directory.
func DecompressWithMaxBytes ¶
DecompressWithMaxBytes takes the path to a .tar.gz file and decompresses it into the specified directory. It enforces a maximum decompressed file size (per file) to prevent decompression bombs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.