From: qydysky Date: Sun, 6 Sep 2020 23:08:11 +0000 (+0800) Subject: 56 X-Git-Tag: v0.0.2~28 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=4337b460928839582530484b90a31a3cae574e86;p=part%2F.git 56 --- diff --git a/CheckFile.go b/CheckFile.go index 121856c..01fc0a3 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 != syscall.ENAMETOOLONG { + if err.Error() != "file name too long" { Logf().E(err) } t.RV = append(t.RV,false,err)