Try to copy the CorDapp if we fail to create a symlink, e.g. on Win10. (#659)

This commit is contained in:
Chris Rankin 2017-05-10 10:31:34 +01:00
parent 3eb14b6692
commit 6449354d26

View File

@ -92,6 +92,10 @@ class Explorer internal constructor(private val explorerController: ExplorerCont
Files.copy(path, destPath)
} catch(e: FileAlreadyExistsException) {
// OK, don't care ...
} catch (e: IOException) {
// Windows 10 might not allow this user to create a symlink
log.warn("Failed to create symlink '{}' for '{}': {}", destPath, path, e.message)
Files.copy(path, destPath)
}
}
}