fileutil

package
v0.0.0-...-3eddca5 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2017 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandPath

func ExpandPath(elem ...string) string

Join path elements and expand to an absolute path. If the first element is `~`, then the user's home directory will be pre-pended. This function could panic if there is no working directory or there is no user home directory.

func FileExists

func FileExists(elem ...string) bool

Return true if the path exists. The path elements are first expanded by `ExpandPath`. If there are any errors in the process, then the function will return false.

func IsDir

func IsDir(elem ...string) bool

Returns true is the path exists. The path elements are first expanded by `ExpandPath`.

func MkdirAll

func MkdirAll(elem ...string) error

Make all directories in the path. The path permissions are set to 0700 on components.

Types

This section is empty.

Jump to

Keyboard shortcuts

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