|
@@ -102,7 +102,7 @@ public class ServiceFileUtil {
|
|
|
logger.warn("目录不存在: {}", directoryPath);
|
|
logger.warn("目录不存在: {}", directoryPath);
|
|
|
throw new ServiceException("目录不存在: "+directoryPath);
|
|
throw new ServiceException("目录不存在: "+directoryPath);
|
|
|
}
|
|
}
|
|
|
- directoryPath="/"+file.getFileName();
|
|
|
|
|
|
|
+ directoryPath+="/"+file.getFileName();
|
|
|
dirPath = Paths.get(directoryPath);
|
|
dirPath = Paths.get(directoryPath);
|
|
|
try {
|
|
try {
|
|
|
Files.copy(file, dirPath, StandardCopyOption.REPLACE_EXISTING);
|
|
Files.copy(file, dirPath, StandardCopyOption.REPLACE_EXISTING);
|