//遍历文件夹
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

posted on 2018-01-04 13:31  蛋尼  阅读(322)  评论(0编辑  收藏  举报