|
@@ -18,7 +18,7 @@ public class FileUtil {
|
|
|
String fileName = file.getOriginalFilename();
|
|
|
try {
|
|
|
// 路径
|
|
|
- String path = String.format("%s%s_%s", filePath, format, fileName);
|
|
|
+ String path = String.format("%s%s__%s", filePath, format, fileName);
|
|
|
File dest = new File(path).getCanonicalFile();
|
|
|
// 检测是否存在目录
|
|
|
if (!dest.getParentFile().exists()) {
|