file

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(name string, content []byte) error

Append appends content to a file.

func Copy

func Copy(oldpath, newpath string) error

Copy copies a file from src to dst.

func Create

func Create(name string, perm os.FileMode) error

Create creates a file at path with the given content.

func DownloadWithCache

func DownloadWithCache(ctx context.Context, cacheDir, src, dest string, mode fs.FileMode, quiet bool) error

DownloadWithCache downloads the src file to the dest file.

func DownloadWithCacheAndExtract

func DownloadWithCacheAndExtract(ctx context.Context, cacheDir, src, dest string, match string, mode fs.FileMode, quiet bool, clean bool) error

DownloadWithCacheAndExtract downloads the src file to the dest file, and extract it to the dest directory.

func Exists

func Exists(name string) bool

Exists checks if a file exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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