archiver

package module
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 12 Imported by: 1

README

GitHub tag (latest by date) GitHub license

JJ-ARCHIVER

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(src string, dst string, password string) error

func Encrypt

func Encrypt(src string, dst string, password string) error

func PackFolder

func PackFolder(folder string, output string) error

PackFolder packages a folder into a tar file ("output.tar")

func UnZip

func UnZip(src string, dst string) error

Unzip takes a gzip file (src) and uncompress it in dst directory.

If destination is not defined (dst == "") then uses current directory.

func Unpack

func Unpack(src string, dst string) error

Unpack extracts all files from a tar file (src) to path dst

func Zip

func Zip(src string, dst string) error

Zip takes a file (src) a compress it using gzip algorithm into a defined place (dst) with ".gz" file extension.

If dst == "" then gz file is saved in current directory.

Example: Zip("folder1/file.tar", "") produces "./file.tar.gz"

Types

This section is empty.

Jump to

Keyboard shortcuts

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