From 4ad5c8d93a45db989b38afbb7f20a62058f7e76b Mon Sep 17 00:00:00 2001 From: gutmet Date: Thu, 3 Jan 2019 17:11:50 +0100 Subject: [PATCH] bugfix: ListFilesExt should join filepaths, not paths --- goutil.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/goutil.go b/goutil.go index cc2f515..a0989e5 100644 --- a/goutil.go +++ b/goutil.go @@ -8,7 +8,6 @@ import ( "io/ioutil" "os" "os/exec" - "path" "path/filepath" "runtime" "strings" @@ -54,7 +53,7 @@ func ListFilesExt(dir string, ext string) []string { for _, file := range files { if !file.IsDir() { if strings.ToUpper(filepath.Ext(file.Name())) == ext { - list = append(list, path.Join(dir, file.Name())) + list = append(list, filepath.Join(dir, file.Name())) } } }