From: qydysky Date: Mon, 7 Sep 2020 02:56:41 +0000 (+0800) Subject: 56 X-Git-Tag: v0.0.2~26 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=c4ec0d4706e97859f235a2766ec78de158177dab;p=part%2F.git 56 --- 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)