创建临时文件夹

// 创建临时文件夹
String tmpPath = Files.createTempDirectory("pdf-").toString();
System.out.println(tmpPath);
File file = new File(tmpPath + File.separator + "new_work_order.pdf");
tmpPath = URLEncoder.encode(tmpPath, "utf-8");
tmpPath = tmpPath.replace("%2F", "%3F");

你可能感兴趣的:(创建临时文件夹)