file

package
v0.1.0-alpha.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZipExtension   = ".zip"
	TarGzExtension = ".tar.gz"
	TgzExtension   = ".tgz"
	GzExtension    = ".gz"
	TarExtension   = ".tar"
)

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies the file from src to dst.

func CreateDirIfNotExists

func CreateDirIfNotExists(dir string) (err error)

func DeleteDirIfExists

func DeleteDirIfExists(dir string) (err error)

func IsFileExists

func IsFileExists(filepath string) (bool, error)

func Uncompress

func Uncompress(file, dst string) error

Uncompress uncompresses the file to the destination directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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