Documentation ¶
Index ¶
- func CleanPath(path string) string
- func CleanPathStar(path string) string
- func Dir3Dot(path string) string
- func DirStar(path string) string
- func DirTrailSep(path string) string
- func IsDirRecursive(path string) bool
- func JustDir(path string) string
- func OptimizePathsGlob(paths *[]string) []string
- func StringSliceApply(slice []string, fun func(string) string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanPath ¶
HarmonizePathStar returns "path/" => "path/*" or "path///" => "path/*" or "pathxxxyyy" => "pathxxxyyy"
func CleanPathStar ¶
CleanPathStar returns "path/" => "path/*" or "path///" => "path/*" or "pathxxxyyy" => "pathxxxyyy"
func DirTrailSep ¶
func IsDirRecursive ¶
func OptimizePathsGlob ¶ added in v0.8.0
TODO: queries could be significantly optimised if we would smartly filter a path list to: - exlude all entries if an item "/my/dir/.../myfile" with a parent dir "/my/dir*/*"" or "/my/dir/*" exists This is a variation of "FilterCommonRootdirs" with glob support For now, our simpler implementation just filters duplicates OptimizePathsGlob returns an optimised paths list with duplicates removed (TODO: remove children that are included by parent glob)
Types ¶
This section is empty.