This commit is contained in:
parent
0772adb9f1
commit
e64eb89c2f
|
@ -635,7 +635,8 @@ func find(dir, name string, results []*string) []*string {
|
||||||
} else {
|
} else {
|
||||||
// match filename
|
// match filename
|
||||||
pattern := filepath.Dir(path) + conf.PathSeparator + name
|
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 {
|
if nil != err {
|
||||||
glog.Errorf("Find match filename failed: [%s]", err.Error)
|
glog.Errorf("Find match filename failed: [%s]", err.Error)
|
||||||
|
|
Loading…
Reference in New Issue