fileutil

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

Copy the src file to dst. Any existing file will be overwritten and will not copy file attributes.

func CopyFileIfAbsent

func CopyFileIfAbsent(src, dst string) error

Copy a file only if it doesn't exist yet

func ExtractTarGz added in v0.14.0

func ExtractTarGz(srcFile, dstPath string) error

ExtractTarGz extracts a tar.gz file on the disk

func FileExists

func FileExists(name string) (bool, error)

func MakeDirectory

func MakeDirectory(baseDir string, subDirs ...string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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