fix: use filepath.Join instead of path.Join

This commit is contained in:
Deluan
2020-02-02 20:12:46 -05:00
committed by Deluan Quintão
parent d9eb3e58cd
commit 0e01f9a0f9
6 changed files with 83 additions and 69 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ package scanner
import (
"os"
"path"
"path/filepath"
"strings"
"time"
@@ -63,7 +63,7 @@ func (s *ChangeDetector) loadDir(dirPath string) (children []string, lastUpdated
}
for _, f := range files {
if f.IsDir() {
children = append(children, path.Join(dirPath, f.Name()))
children = append(children, filepath.Join(dirPath, f.Name()))
} else {
if f.ModTime().After(lastUpdated) {
lastUpdated = f.ModTime()