From aa5935f9848db70a9fffad51194d557d6db1a2ab Mon Sep 17 00:00:00 2001 From: qydysky Date: Mon, 7 Sep 2020 07:22:39 +0800 Subject: [PATCH] 56 --- CheckFile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CheckFile.go b/CheckFile.go index 01fc0a3..4d2c5f3 100644 --- a/CheckFile.go +++ b/CheckFile.go @@ -58,7 +58,7 @@ func (t *checkfile) IsExist(f string) bool { t.RV = append(t.RV,false,nil) return false }else{ - if err.Error() != "file name too long" { + if errors.Is(err, syscall.ENAMETOOLONG) { Logf().E(err) } t.RV = append(t.RV,false,err) -- 2.39.2