From: qydysky Date: Sat, 5 Sep 2020 05:09:53 +0000 (+0800) Subject: 55 X-Git-Tag: v0.0.2~31 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=05e5f23441d0d79bb30bffcd5a5486d0eedf608d;p=part%2F.git 55 --- diff --git a/CheckFile.go b/CheckFile.go index be039e4..9420397 100644 --- a/CheckFile.go +++ b/CheckFile.go @@ -93,6 +93,8 @@ func (this *checkfile) GetAllFile(pathname string) ([]string,string,error) { rd, err := ioutil.ReadDir(pathname) + if err != nil {return list,returnVal,err} + for _, fi := range rd { if fi.IsDir() { _list, _returnVal, _:=this.GetAllFile(pathname + fi.Name() + "/")