1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-10 07:42:27 +08:00

fix: fix IsExist function in fileutil/file.go

This commit is contained in:
dudaodong
2021-11-29 20:23:26 +08:00
parent 561b590e13
commit 4e5d3c2603
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ func IsExist(path string) bool {
if err == nil {
return true
}
if errors.Is(err, os.ErrExist) {
if errors.Is(err, os.ErrNotExist) {
return false
}
return false