fs

package
v0.0.0-...-58998d9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fs provides filesystem-related functions.

Index

Constants

View Source
const (
	// DirMode is the default permission used when creating directories
	DirMode = 0755
	// FileMode is the default permission used when creating files
	FileMode = 0644
)

Variables

This section is empty.

Functions

func AbsFilePath

func AbsFilePath(inPath string) string

AbsFilePath resolves ENV vars specified in string for file paths

func CopyDir

func CopyDir(src, dest string) error

CopyDir is a utility to assist with copying a directory from src to dest. Note that directory permissions are not maintained, but the permissions of the files in those directories are.

func CopyFile

func CopyFile(src, dest string) error

CopyFile is a utility to assist with copying a file from src to dest. Note that file permissions are maintained.

func Gopath

func Gopath() string

Gopath will return the current GOPATH as set by environment variables and will fall back to ~/go if a GOPATH is not set.

func UntarBundle

func UntarBundle(destination string, source string) error

UntarBundle will untar a source tar.gz archive to the supplied destination

Types

This section is empty.

Jump to

Keyboard shortcuts

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