From 05e5f23441d0d79bb30bffcd5a5486d0eedf608d Mon Sep 17 00:00:00 2001 From: qydysky Date: Sat, 5 Sep 2020 13:09:53 +0800 Subject: [PATCH] 55 --- CheckFile.go | 2 ++ 1 file changed, 2 insertions(+) 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() + "/") -- 2.39.2