mirror of
https://github.com/corda/corda.git
synced 2024-12-25 15:41:10 +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
d3075928b2
commit
9a5775698b
@ -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