mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-02-09 09:17:28 +08:00
add util.PathJoin
This commit is contained in:
@@ -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))
|
||||
}
|
||||
Reference in New Issue
Block a user