summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2023-02-06 12:34:01 +0100
committerQuentin Carbonneaux2023-02-06 12:38:57 +0100
commit3dab24c6671181e38dd852f2a558b01ddb38aefa (patch)
tree30d15473deebe428f153da8fab0847bbc17ae46f
parent50908608d263758af835e07f19283938a834dd07 (diff)
memex check: avoid revisiting dirs
-rw-r--r--memex/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/memex/main.go b/memex/main.go
index bda5599..c14ca7c 100644
--- a/memex/main.go
+++ b/memex/main.go
@@ -820,6 +820,9 @@ func checkWalk(w Walker, chk *Check) (bool, error) {
if !ent.Addr.Ok() {
return true, nil
}
+ if visited(ent.Addr, Vdir, chk) {
+ return false, nil
+ }
ws, err := w.Dive() /* ws is nil if err != nil */
var bad bool
if errors.Is(err, readError) {