diff --git a/doc/ref/misc-modules.texi b/doc/ref/misc-modules.texi index 617762441..cf0c59975 100644 --- a/doc/ref/misc-modules.texi +++ b/doc/ref/misc-modules.texi @@ -1249,6 +1249,18 @@ to `du --apparent-size' with GNU Coreutils.)" The alternative C-like functions are described below. +@defun scandir name [select? [entry (file-system-fold enter? leaf down up skip '() name stat) + (lambda (files) + (sort files entry))) + (match (scandir (string-append %test-dir "/tests") select?) + (("." ".." "00-initial-env.test" (? select?) ...) + #t)))))