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.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/weed/util/fullpath.go b/weed/util/fullpath.go
index 413ee27bf..4ce8a2f90 100644
--- a/weed/util/fullpath.go
+++ b/weed/util/fullpath.go
@@ -47,6 +47,10 @@ func (fp FullPath) Split() []string {
return strings.Split(string(fp)[1:], "/")
}
-func PathJoin(dir, name string) string {
- return filepath.ToSlash(filepath.Join(dir, name))
-} \ No newline at end of file
+func Join(names ...string) string {
+ return filepath.ToSlash(filepath.Join(names...))
+}
+
+func JoinPath(names ...string) FullPath {
+ return FullPath(Join(names...))
+}