]> 127.0.0.1 Git - part/.git/commitdiff
56
authorqydysky <qydysky@foxmail.com>
Mon, 7 Sep 2020 02:56:41 +0000 (10:56 +0800)
committerqydysky <qydysky@foxmail.com>
Mon, 7 Sep 2020 02:56:41 +0000 (10:56 +0800)
CheckFile.go

index 4d2c5f38b7da624211e0b9c67f1693e938fa7481..93d06fbeb67c48cb8b17802fa17bf9e82091ef18 100644 (file)
@@ -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)