Commit 4bb65efa authored by chenzhao's avatar chenzhao

资源下载

parent 0b44f14c
......@@ -537,9 +537,10 @@ public class CommonServiceImpl {
Path templateDir = Paths.get(TEMPLATE_FILE_PATH).getParent();
System.out.println("模版文件所在目录是: " + templateDir);
Path tempDir = Files.createTempDirectory(TEMP_DIR_NAME);
Path tempDir = templateDir.resolve(TEMP_DIR_NAME);
try {
Files.createDirectories(tempDir.resolve(BASE_INFO_FOLDER));
Files.createDirectories(tempDir); // 创建临时目录
System.out.println("Temporary directory created at: " + tempDir);
} catch (IOException e) {
e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment