diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java b/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java index c9e1bb8b..b3e0f345 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java @@ -254,6 +254,7 @@ public class Hwi { File hwiHomeDir = getHwiHomeDir(); File hwiVersionDir = new File(hwiHomeDir, HWI_VERSION_DIR); + IOUtils.deleteDirectory(hwiVersionDir); if(!hwiVersionDir.exists()) { Files.createDirectories(hwiVersionDir.toPath(), PosixFilePermissions.asFileAttribute(ownerExecutableWritable)); }