fix(accounts): fix windows path on re-encryption (#3412)

This commit is contained in:
Jonathan Rainville 2023-04-20 16:57:16 -04:00 committed by GitHub
parent 9dea0aaee3
commit 1fe4a898b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -579,6 +579,7 @@ func (m *Manager) ReEncryptKeyStoreDir(keyDirPath, oldPass, newPass string) erro
}
keyDirPath = strings.TrimSuffix(keyDirPath, "/")
keyDirPath = strings.TrimSuffix(keyDirPath, "\\")
keyParent, keyDirName := filepath.Split(keyDirPath)
// backupKeyDirName used to store existing keys before final write