|
@@ -116,7 +116,10 @@ public class InvestigateDispositionServiceImpl implements IInvestigateDispositio
|
|
|
String path = url.replace("/profile", getProfile());
|
|
|
// 删除原先的文件
|
|
|
try {
|
|
|
- Runtime.getRuntime().exec("rm -f " + path);
|
|
|
+ File file = new File(path);
|
|
|
+ if (file.exists()){
|
|
|
+ Runtime.getRuntime().exec("rm -f " + path);
|
|
|
+ }
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|