mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-05 05:46:44 +00:00
always delete hwi dir on osx before copying
This commit is contained in:
parent
4b028af123
commit
9a09bb8cda
1 changed files with 1 additions and 0 deletions
|
@ -254,6 +254,7 @@ public class Hwi {
|
||||||
|
|
||||||
File hwiHomeDir = getHwiHomeDir();
|
File hwiHomeDir = getHwiHomeDir();
|
||||||
File hwiVersionDir = new File(hwiHomeDir, HWI_VERSION_DIR);
|
File hwiVersionDir = new File(hwiHomeDir, HWI_VERSION_DIR);
|
||||||
|
IOUtils.deleteDirectory(hwiVersionDir);
|
||||||
if(!hwiVersionDir.exists()) {
|
if(!hwiVersionDir.exists()) {
|
||||||
Files.createDirectories(hwiVersionDir.toPath(), PosixFilePermissions.asFileAttribute(ownerExecutableWritable));
|
Files.createDirectories(hwiVersionDir.toPath(), PosixFilePermissions.asFileAttribute(ownerExecutableWritable));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue