mirror of
https://github.com/corda/corda.git
synced 2025-01-28 23:24:29 +00:00
CORPRIV-661: Ensure that we can rewrite saved profiles correctly.
This commit is contained in:
parent
8624537d34
commit
d69d9c6fde
@ -39,6 +39,10 @@ class ProfileController : Controller() {
|
|||||||
|
|
||||||
val configs = nodeController.activeNodes
|
val configs = nodeController.activeNodes
|
||||||
|
|
||||||
|
// Delete the profile, if it already exists. The save
|
||||||
|
// dialogue has already confirmed that this is OK.
|
||||||
|
target.delete()
|
||||||
|
|
||||||
FileSystems.newFileSystem(URI.create("jar:" + target.toURI()), mapOf("create" to "true")).use {
|
FileSystems.newFileSystem(URI.create("jar:" + target.toURI()), mapOf("create" to "true")).use {
|
||||||
fs -> configs.forEach { it ->
|
fs -> configs.forEach { it ->
|
||||||
val nodeDir = Files.createDirectories(fs.getPath(it.key))
|
val nodeDir = Files.createDirectories(fs.getPath(it.key))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user