commit b9c7c2a295f6a5afcdbadfd5e5043002d5218064 parent ada68e58768d517f52c14aef6cc2509c49af5df8 Author: Marc Stibane <marc@taler.net> Date: Sat, 10 Oct 2026 20:38:44 +0200 AI: path handling Diffstat:
| M | TalerWallet1/Views/Settings/BackupView.swift | | | 8 | ++------ |
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/TalerWallet1/Views/Settings/BackupView.swift b/TalerWallet1/Views/Settings/BackupView.swift @@ -86,12 +86,8 @@ struct BackupView: View { withAnimation { self.isRestoring = true } -// symLog.log("❗️Restore \(selectedBackup)❗️") -// if #available(iOS 16.0, *) { -// backupPath = docDirUrl.appending(component: selectedBackup) -// } - let backupPath = docDirUrl.appendingPathComponent(selectedBackup).absoluteString - let path = backupPath.deletingPrefix(PREFIX) + // .path doesn't percent-encode e.g. "Taler-… 2.json" into "Taler-…%202.json" + let path = docDirUrl.appendingPathComponent(selectedBackup).path(withSlash: false) symLog.log("❗️Restore \(path)❗️") restoreBackup(path) withAnimation { self.selectedBackup = nil }