Documentation ¶
Index ¶
- func CurLeafDir() (string, error)
- func FilepathLeaf(s string) string
- func FilterFilepaths(paths []string, inclExists, inclNotExists, inclFiles, inclDirs bool) []string
- func Trim(file string) string
- func TrimLeft(file string) string
- func TrimRight(file string) string
- func UserToAbsolute(file string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurLeafDir ¶
CurLeafDir returns the leaf dir of a nested directory.
func FilepathLeaf ¶ added in v0.0.25
FilepathLeaf returns the last element of a path.
func FilterFilepaths ¶
FilterFilepaths filters a slice of filepaths using various options.
func UserToAbsolute ¶
UserToAbsolute converts ~ directories to absolute directories in filepaths. This is useful because ~ cannot be resolved by ioutil.ReadFile().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.