File headPath = new File(uploadPath);//获取文件夹路径 if(!headPath.exists()){//判断文件夹是否创建,没有创建则创建新文件夹 headPath.mkdirs(); }
创建目录
最新推荐文章于 2020-10-30 12:19:32 发布
File headPath = new File(uploadPath);//获取文件夹路径 if(!headPath.exists()){//判断文件夹是否创建,没有创建则创建新文件夹 headPath.mkdirs(); }