]> 127.0.0.1 Git - part/.git/commitdiff
56
authorqydysky <qydysky@foxmail.com>
Sun, 6 Sep 2020 22:15:44 +0000 (06:15 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 6 Sep 2020 22:15:44 +0000 (06:15 +0800)
CheckFile.go

index 94203971745e0883781fc1610c8609e655c3954a..74b90953792279e5576e157458ed82fd41048d12 100644 (file)
@@ -50,6 +50,8 @@ func (this *checkfile) Build(checkFile,root,checkDir,SplitString string,usemd5 b
 }
 
 func (t *checkfile) IsExist(f string) bool {
+       if len(f) > 4096 {return false}
+
        _, err := os.Stat(f)
        if err != nil {
                if os.IsNotExist(err) {