Commit 022c826b authored by yanzg's avatar yanzg

文件处理

parent 4049b81d
......@@ -158,6 +158,11 @@ public class YzgFileServiceImpl implements YzgFileService {
} else if (!fileFrom.exists()) {
continue;
}
// 创建父文件夹
File parentFile = fileTo.getParentFile();
FileHelper.createDirectory(parentFile);
try {
Files.move(Paths.get(fullFrom), Paths.get(fullTo), StandardCopyOption.REPLACE_EXISTING);
} catch (Exception ex) {
......
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