This commit is contained in:
Liang Ding 2014-11-28 10:55:46 +08:00
parent 0772adb9f1
commit e64eb89c2f
1 changed files with 2 additions and 1 deletions

View File

@ -635,7 +635,8 @@ func find(dir, name string, results []*string) []*string {
} else {
// match filename
pattern := filepath.Dir(path) + conf.PathSeparator + name
match, err := filepath.Match(pattern, path)
match, err := filepath.Match(strings.ToLower(pattern), strings.ToLower(path))
if nil != err {
glog.Errorf("Find match filename failed: [%s]", err.Error)