xos

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dest string) error

Copy copies file, symlink and file metadata from source to target path.

func CopyDir

func CopyDir(src, dest string) error

CopyDir copies directory from source to target path.

func CopyFile

func CopyFile(src, dest string) error

CopyFile copies file from source to target path.

func CopySymlink(src, dest string) error

CopySymlink copies file under symbolic link.

func Exist

func Exist(name string) bool

Exist return true if given file exists, false otherwise.

func GetenvDefault

func GetenvDefault(key, fallback string) string

GetenvDefault retrieves the value of the environment variable named by the key. It returns the value, which will be set to fallback if the variable is empty.

func Remove

func Remove(names ...string) error

Remove removes all given named file or directory.

func RemoveAll

func RemoveAll(paths ...string) error

RemoveAll removes all given path and any children it contains.

func Touch

func Touch(name string) error

Touch creates a new file, truncating it if it already exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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