Documentation
¶
Index ¶
- Variables
- func CopyDir(src, dest string) error
- func DirExists(path string) (bool, error)
- func EnsureDir(path string)
- func Extract(extension, src, dest string) error
- func ExtractTarGz(src, dest string) error
- func ExtractTarXz(src, dest string) error
- func FileExists(path string) (bool, error)
- func Glob(pattern, exclude string) ([]string, error)
- func Sync(sourceDirs []string, destDir string, mirror bool) error
- func Unzip(src, dest string) ([]string, error)
- type Globs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIllegalFilePath = errors.New("illegal file path") ErrFileTooLarge = errors.New("file too large") )
View Source
var ErrUnknownExtension = errors.New("unknown file extension")
Functions ¶
func EnsureDir ¶
func EnsureDir(path string)
EnsureDir makes sure a directory exists. It panics if something goes wrong.
func ExtractTarGz ¶
func ExtractTarXz ¶ added in v0.4.8
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.