pathtools: Fixed absolute path bug in Glob.
Change-Id: I30ba550449787648f6dca052b89f4eb7722bcb55
This commit is contained in:
parent
af43556ce3
commit
b6a5039e88
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ func Glob(pattern string) (matches, dirs []string, err error) {
|
|||
dirElems := strings.Split(dir, string(filepath.Separator))
|
||||
|
||||
for _, index := range wildIndices {
|
||||
dirs = append(dirs, filepath.Join(dirElems[:index]...))
|
||||
dirs = append(dirs, strings.Join(dirElems[:index],
|
||||
string(filepath.Separator)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue