From 2021cd3809cbef6f924c648ea763dfc663b53cf9 Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Wed, 28 Jan 2026 20:35:33 +0000 Subject: [PATCH] fix: incorrect file deletion logic --- rewind/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewind/state.py b/rewind/state.py index a3e9974..e2e4345 100644 --- a/rewind/state.py +++ b/rewind/state.py @@ -46,7 +46,7 @@ def cleanup_state_files() -> None: files = state.get("files", []) # Remove old files from state - state["files"] = [file for file in files if not os.path.exists(file["path"])] + state["files"] = [file for file in files if os.path.exists(file["path"])] write_state(state) def create_state_file_if_needed() -> None: