Skip to content

Commit 4e9d541

Browse files
authored
#225: Return statement in backup() functions in case of symlinks (#226)
1 parent fdf3447 commit 4e9d541

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/src/main/java/com/devonfw/tools/ide/io/FileAccessImpl.java

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ public void backup(Path fileOrFolder) {
225225

226226
if (Files.isSymbolicLink(fileOrFolder)) {
227227
delete(fileOrFolder);
228+
return;
228229
}
229230
Path backupPath = this.context.getIdeHome().resolve(IdeContext.FOLDER_UPDATES).resolve(IdeContext.FOLDER_BACKUPS);
230231
LocalDateTime now = LocalDateTime.now();

0 commit comments

Comments
 (0)