]> 127.0.0.1 Git - part/.git/commitdiff
55
authorqydysky <qydysky@foxmail.com>
Sat, 5 Sep 2020 05:09:53 +0000 (13:09 +0800)
committerqydysky <qydysky@foxmail.com>
Sat, 5 Sep 2020 05:09:53 +0000 (13:09 +0800)
CheckFile.go

index be039e4b57773c77a04bd5bc3350f45c54b1b00d..94203971745e0883781fc1610c8609e655c3954a 100644 (file)
@@ -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() + "/")