diff options
Diffstat (limited to 'weed/util/fullpath.go')
| -rw-r--r-- | weed/util/fullpath.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/util/fullpath.go b/weed/util/fullpath.go index 7f7a77734..413ee27bf 100644 --- a/weed/util/fullpath.go +++ b/weed/util/fullpath.go @@ -46,3 +46,7 @@ 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 |
