//遍历文件夹 dir, err := ioutil.ReadDir("./upload_tmp")for _,file := range dir{ logs.Debug(file.Name(),file.Size()) }
参考:https://www.cnblogs.com/zheng-chuang/p/6193090.html