refactor(music-houduan): 删除冗余的文件上传代码
- 移除了注释掉的创建目录代码块 -优化了文件上传路径的创建逻辑
This commit is contained in:
@@ -163,12 +163,6 @@ public class FileServiceImpl implements FileService {
|
||||
String extension = getFileExtension(originalFilename);
|
||||
String fileName = UUID.randomUUID().toString() + "." + extension;
|
||||
|
||||
// // 创建目录
|
||||
// File dir = new File(uploadPath + directory);
|
||||
// if (!dir.exists()) {
|
||||
// dir.mkdirs();
|
||||
// }
|
||||
|
||||
File root = new File(uploadPath); // /uploads
|
||||
File bizDir = new File(root, directory); // /uploads/bizType
|
||||
if (!bizDir.exists()) {
|
||||
|
||||
Reference in New Issue
Block a user