]> 127.0.0.1 Git - part/.git/commitdiff
56
authorqydysky <qydysky@foxmail.com>
Sun, 6 Sep 2020 23:08:11 +0000 (07:08 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 6 Sep 2020 23:08:11 +0000 (07:08 +0800)
CheckFile.go

index 121856cfbd93657e1a2320977184985518289441..01fc0a38845abce3dfe27fb285608d5e97810cc1 100644 (file)
@@ -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)