about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-11-08 01:03:40 +0000
committerArun Isaac2026-11-08 01:03:40 +0000
commit5bebae462e382b6679a0040ce72da5db23bb1031 (patch)
treeb26e7082842471a8f19ae54fb596188d974881eb
parentceb699b099f9cefaf5d27942a3c4795683d5a570 (diff)
downloadkaagum-5bebae462e382b6679a0040ce72da5db23bb1031.tar.gz
kaagum-5bebae462e382b6679a0040ce72da5db23bb1031.tar.lz
kaagum-5bebae462e382b6679a0040ce72da5db23bb1031.zip
Comment on canonicalizing file paths when traversing file tree. HEAD main
-rw-r--r--kaagum/tools/base.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/kaagum/tools/base.scm b/kaagum/tools/base.scm
index 69d1a87..749baa2 100644
--- a/kaagum/tools/base.scm
+++ b/kaagum/tools/base.scm
@@ -67,6 +67,9 @@ directory, return a singleton list with @var{path} alone."
                             (not (string-prefix? "." (basename path))))
                           (lambda (path stat result)
                             (if (regexp-exec pattern-rx (basename path))
+                                ;; Canonicalize path when building the result.
+                                ;; canonicalize-path accesses the filesystem and
+                                ;; may fail; if it does, discard the file.
                                 (guard (c (#t result))
                                   (cons (canonicalize-path path)
                                         result))