aboutsummaryrefslogtreecommitdiff
path: root/weed/util/fullpath.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/util/fullpath.go')
-rw-r--r--weed/util/fullpath.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/util/fullpath.go b/weed/util/fullpath.go
index f52d4d1d0..92580dc38 100644
--- a/weed/util/fullpath.go
+++ b/weed/util/fullpath.go
@@ -63,3 +63,9 @@ func Join(names ...string) string {
func JoinPath(names ...string) FullPath {
return FullPath(Join(names...))
}
+func Split(separatedValues string, sep string) []string {
+ if separatedValues == "" {
+ return nil
+ }
+ return strings.Split(separatedValues, sep)
+}