controller: fix migration of key files. #closes #1184
This commit is contained in:
parent
7f6e53c779
commit
825707f1a7
|
@ -191,7 +191,7 @@ namespace SparkleShare {
|
||||||
// Replace spaces with underscores in old keys
|
// Replace spaces with underscores in old keys
|
||||||
if (file_name.Contains (" ")) {
|
if (file_name.Contains (" ")) {
|
||||||
string new_file_name = file_name.Replace (" ", "_");
|
string new_file_name = file_name.Replace (" ", "_");
|
||||||
File.Move (key_file_path, Path.Combine (keys_path));
|
File.Move (key_file_path, Path.Combine (keys_path, new_file_name));
|
||||||
File.Move (key_file_path + ".pub", Path.Combine (keys_path, new_file_name + ".pub"));
|
File.Move (key_file_path + ".pub", Path.Combine (keys_path, new_file_name + ".pub"));
|
||||||
key_file_path = Path.Combine (keys_path, new_file_name);
|
key_file_path = Path.Combine (keys_path, new_file_name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue