Skip to content

Commit 150f6f9

Browse files
committed
parse: fix walkDirExt
1 parent 58fed2e commit 150f6f9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

parse/util.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,7 @@ func walkDirExt(targetDir, ext string) (map[os.FileInfo]string, error) {
3030
if !f.IsDir() {
3131
if filepath.Ext(path) == ext {
3232
if !filepath.HasPrefix(path, ".") && !strings.Contains(path, "/.") {
33-
if _, ok := rmap[f]; !ok {
34-
wd, err := os.Getwd()
35-
if err != nil {
36-
return err
37-
}
38-
thepath := filepath.Join(wd, strings.Replace(path, wd, "", -1))
39-
rmap[f] = thepath
40-
}
33+
rmap[f] = path
4134
}
4235
}
4336
}

0 commit comments

Comments
 (0)