|
@@ -302,9 +302,12 @@ public class OssUtil {
|
|
|
return aliyunOssTemplate.copyObject(oldPath, newPath);
|
|
|
}
|
|
|
}else{
|
|
|
- File copy = FileUtil.copyContent(new File(FdkkLaserConfig.getProfile(prefix) + File.separator + oldPath),
|
|
|
- new File(FdkkLaserConfig.getProfile(prefix) + File.separator + newPath), true);
|
|
|
- return copy.exists();
|
|
|
+ if(new File(FdkkLaserConfig.getProfile(prefix) + File.separator + oldPath).exists()){
|
|
|
+ File copy = FileUtil.copyContent(new File(FdkkLaserConfig.getProfile(prefix) + File.separator + oldPath),
|
|
|
+ new File(FdkkLaserConfig.getProfile(prefix) + File.separator + newPath), true);
|
|
|
+ return copy.exists();
|
|
|
+ }
|
|
|
+ return false;
|
|
|
}
|
|
|
}
|
|
|
|