From 980f69b5af4e0cbb957edbcae31e12bf15a0a110 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Thu, 23 Apr 2020 20:02:05 +0200 Subject: [PATCH] Fix organizer marking itself causing an error --- PFERD/organizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PFERD/organizer.py b/PFERD/organizer.py index 47c9bc6..f46e69c 100644 --- a/PFERD/organizer.py +++ b/PFERD/organizer.py @@ -29,7 +29,7 @@ class Organizer(Location): self._known_files: Set[Path] = set() # Keep the root dir - self.mark(path) + self._known_files.add(path.resolve()) def accept_file(self, src: Path, dst: PurePath) -> None: """Move a file to this organizer and mark it."""