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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user