mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 11:35:51 +00:00
Merge pull request #27 from cwkuo/fix-windows-file-contains
Fix os.IsExist() condition in filelist.Contains()
This commit is contained in:
commit
0bf1ece211
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ func (f *filelist) Contains(pathname string) bool {
|
|||
|
||||
// Finally try absolute path
|
||||
st, e := os.Stat(rel)
|
||||
if !os.IsNotExist(e) && st.IsDir() && strings.HasPrefix(abs, rel) {
|
||||
if os.IsExist(e) && st.IsDir() && strings.HasPrefix(abs, rel) {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue