diff options
Diffstat (limited to 'src/path/filepath/path_plan9.go')
| -rw-r--r-- | src/path/filepath/path_plan9.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/path/filepath/path_plan9.go b/src/path/filepath/path_plan9.go index ee8912d58e..da5f5fdac7 100644 --- a/src/path/filepath/path_plan9.go +++ b/src/path/filepath/path_plan9.go @@ -32,3 +32,13 @@ func splitList(path string) []string { func abs(path string) (string, error) { return unixAbs(path) } + +func join(elem []string) string { + // If there's a bug here, fix the logic in ./path_unix.go too. + for i, e := range elem { + if e != "" { + return Clean(strings.Join(elem[i:], string(Separator))) + } + } + return "" +} |
