Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPathEmpty = errors.New("path is empty")
)
Functions ¶
func Concatenate ¶
* Concatenate two paths together (takes care of leading / trailing '/') * e.g. (space1/, /space2/) -> space1/space2 * * NOTE: All leading, trailing, and consecutive '/' will be trimmed to ensure correct paths.
func DisectLeaf ¶
DisectLeaf splits a path into its parent path and the leaf name e.g. space1/space2/space3 -> (space1/space2, space3, nil).
func DisectRoot ¶
DisectRoot splits a path into its root space and sub-path e.g. space1/space2/space3 -> (space1, space2/space3, nil).
func IsAncesterOf ¶
IsAncesterOf returns true iff 'path' is an ancestor of 'other' or they are the same. e.g. other = path(/.*).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.