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 committed by GitHub
parent d3075928b2
commit 9a5775698b

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)
}
}
}