in src/main/java/com/aliyun/dts/subscribe/clients/common/Util.java [74:90]
public static void deleteFile(String fileName) {
File maybeAbsolutePath = new File(fileName);
if (!maybeAbsolutePath.exists()) {
return;
}
File metaFile = null;
if (maybeAbsolutePath.isAbsolute()) {
metaFile = maybeAbsolutePath;
} else {
File currentPath = new File(".");
metaFile = new File(currentPath.getAbsolutePath() + File.separator + fileName);
}
boolean deleted = metaFile.delete();
if (!deleted) {
throw new RuntimeException(metaFile.getAbsolutePath() + " should be cleaned anyway");
}
}