lj_archive

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Old added in v0.0.2

func Old(dst string, r io.Reader) error

func Ontar added in v0.0.2

func Ontar(r io.Reader, dir string) (err error)

func Unzip

func Unzip(source, destination string) ([]string, error)

Unzip extracts a .zip archive into the specified destination directory. It returns a string slice of the filepaths for each extracted file, relative to the destination root. If any of the destination files or folders already exists, they will be overwritten assuming the process has write permissions to the destination.

The destination parent will be named after the input .zip file. e.g. if the input .zip file is named "test.zip", and the destination is "/data/project", the final destination will be "/data/project/test".

Types

This section is empty.

Jump to

Keyboard shortcuts

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