From: qydysky Date: Sun, 6 Sep 2020 22:15:44 +0000 (+0800) Subject: 56 X-Git-Tag: v0.0.2~30 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=1154ca671f2790e35dc965a861e118fc859c899c;p=part%2F.git 56 --- diff --git a/CheckFile.go b/CheckFile.go index 9420397..74b9095 100644 --- a/CheckFile.go +++ b/CheckFile.go @@ -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) {