Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapePattern ¶
EscapePattern escapes special characters in pattern strings for usage in filepath.Glob() or filepath.Match() See: https://godoc.org/path/filepath#Match
func IsSub ¶
IsSub returns true if sub is a sub path of path,otherwise false is returned. The function is taken from https://stackoverflow.com/questions/28024731/check-if-given-path-is-a-subdirectory-of-another-in-golang
func PathRelCopy ¶
PathRelCopy determines first a relative path that is lexically equivalent to path when joined to srcBase with an intervening separator. If this is successful, it returns a path joined from dstBase, a separator and the relative path from the previous step.
func PathTrunk ¶
PathTrunk returns the file path without the file extension. E.g. Trunk("/home/test/abc.mp3") return "/home/test/abc"
Types ¶
This section is empty.