mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Try to copy the CorDapp if we fail to create a symlink, e.g. on Win10. (#659)
This commit is contained in:
parent
3eb14b6692
commit
6449354d26
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user