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 ¶
AbsFilePath resolves ENV vars specified in string for file paths
func CopyDir ¶
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 ¶
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 ¶
UntarBundle will untar a source tar.gz archive to the supplied destination
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.