controller: overwrite the stale public key copy if it exists instead of crashing
This commit is contained in:
parent
de7971e214
commit
6240a760da
|
@ -894,7 +894,8 @@ namespace SparkleShare {
|
||||||
// Create an easily accessible copy of the public
|
// Create an easily accessible copy of the public
|
||||||
// key in the user's SparkleShare folder
|
// key in the user's SparkleShare folder
|
||||||
File.Copy (key_file_path + ".pub",
|
File.Copy (key_file_path + ".pub",
|
||||||
Path.Combine (SparklePath, UserName + "'s key.txt"));
|
Path.Combine (SparklePath, UserName + "'s key.txt"),
|
||||||
|
true); // Overwriting is allowed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue