Skip to content

Commit 61a4041

Browse files
committed
Revert "Never use filepath.Join on the client"
This reverts commit 5160e9f.
1 parent 195e2c7 commit 61a4041

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

walk.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package hdfs
22

33
import (
44
"os"
5-
"path"
65
"path/filepath"
76
"sort"
87
)
@@ -43,7 +42,7 @@ func (c *Client) walk(path string, walkFn filepath.WalkFunc) error {
4342

4443
sort.Strings(names)
4544
for _, name := range names {
46-
err = c.walk(path.Join(path, name), walkFn)
45+
err = c.walk(filepath.Join(path, name), walkFn)
4746
if err != nil {
4847
return err
4948
}

0 commit comments

Comments
 (0)