From e43c16adb3b1196dc99119f154a4b409425a57fd Mon Sep 17 00:00:00 2001 From: furtest Date: Thu, 1 Jan 2026 18:51:45 +0100 Subject: [PATCH] paths : fixes write_new_paths writing of the file I was writing the file using 'w' instead of 'a' so the old paths were deleted use 'a'. --- src/unisync/paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unisync/paths.py b/src/unisync/paths.py index 6048c46..6bb6269 100644 --- a/src/unisync/paths.py +++ b/src/unisync/paths.py @@ -106,7 +106,7 @@ class PathsManager: if not is_contained and new_path not in paths_to_add: paths_to_add.append(new_path) - with self.paths_file.open("w") as f: + with self.paths_file.open("a") as f: for p in paths_to_add: f.write(p + "\n")