Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTargetType = errors.New("The target directory type is file")
Functions ¶
func ExtractAndWriteFile ¶ added in v1.20.0
ExtractAndWriteFile extracts a file from a zip archive and writes it to the specified destination path. If the file is a directory, it ensures the directory exists. Otherwise, writes the file content to the destination. Returns an error if path validation fails, if file writing fails, or if creating directories encounters issues.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.