From 540e6e1c5a2b1aa7782a034cfddffcdb37fd2737 Mon Sep 17 00:00:00 2001 From: Filip Brygidyn Date: Mon, 30 Dec 2019 18:13:49 +0100 Subject: [PATCH] Walk Method: Consider symlinks as visited only after actually following them The bugfix attempt in cac84de5 was incorrect and was adding links to 'processed_links' list preemptively when visiting the link location path. The correct behavior is to add it to the list when visiting the link target path instead. diff --git a/catfish/CatfishSearchEngine.py b/catfish/CatfishSearchEngine.py index 29ed554b..bb744336 100644 --- a/catfish/CatfishSearchEngine.py +++ b/catfish/CatfishSearchEngine.py @@ -331,7 +331,6 @@ class CatfishSearchMethod_Walk(CatfishSearchMethod): # Link: ~/.wine/dosdevices/z:/ -> / if realroot.startswith(realpath): continue - processed_links.append(realpath) if os.path.basename(path).startswith("."): if islink: dotlinks.append(path) -- 2.24.1