diff --git a/designer-base/src/main/java/com/fr/design/update/utils/FileUtils.java b/designer-base/src/main/java/com/fr/design/update/utils/FileUtils.java index db12d2fcd6..0dea603c54 100644 --- a/designer-base/src/main/java/com/fr/design/update/utils/FileUtils.java +++ b/designer-base/src/main/java/com/fr/design/update/utils/FileUtils.java @@ -29,6 +29,8 @@ public class FileUtils { for (File file : versionBackup) { if (file.isDirectory() && file.length() > 0) { versions.add(file.getName()); + } else { + StableUtils.deleteFile(file); } } }