From bc36561503b709067d14c7d38b12bc12f9a5b4d7 Mon Sep 17 00:00:00 2001 From: Noo6 <2746419228@qq.com> Date: Fri, 30 Aug 2024 22:24:23 +0800 Subject: [PATCH] fix: backup on windows --- lib/data/model/app/backup.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data/model/app/backup.dart b/lib/data/model/app/backup.dart index 623534ce1..7f6f6ac33 100644 --- a/lib/data/model/app/backup.dart +++ b/lib/data/model/app/backup.dart @@ -56,7 +56,7 @@ class Backup { static Future backup([String? name]) async { final result = _diyEncrypt(json.encode(Backup.loadFromStore().toJson())); - final path = '${Paths.doc}/${name ?? Miscs.bakFileName}'; + final path = Paths.doc.joinPath(name ?? Miscs.bakFileName); await File(path).writeAsString(result); return path; }