From c4ec0d4706e97859f235a2766ec78de158177dab Mon Sep 17 00:00:00 2001 From: qydysky Date: Mon, 7 Sep 2020 10:56:41 +0800 Subject: [PATCH] 56 --- CheckFile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CheckFile.go b/CheckFile.go index 4d2c5f3..93d06fb 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 errors.Is(err, syscall.ENAMETOOLONG) { + if !strings.Contains(err.Error(),"file name too long") { Logf().E(err) } t.RV = append(t.RV,false,err) -- 2.39.2