Ticket #993: find-files.diff

File find-files.diff, 817 bytes (added by Christian Kellermann, 11 years ago)
  • sigma.scm

     
    817817          (slidepat (regexp-escape slideprefix)))
    818818      (let ((pat   (s+ jpgpat "|" pngpat "|" gifpat))
    819819            (expat (regexp (s+ ".*((" thumbpat ")|(" slidepat ")).*"))))
    820         (let ((flst (find-files path (regexp pat)
    821                                 (lambda (x ax) (if (string-match expat x) ax
    822                                                    (cons (pathname-strip-directory x) ax)))
    823                                 (list) 0)))
     820        (let ((flst (find-files path
     821                                test: (regexp pat)
     822                                action: (lambda (x ax) (if (string-match expat x) ax
     823                                                           (cons (pathname-strip-directory x) ax)))
     824                                limit: 0)))
    824825          (sort flst string<?))))))
    825826
    826827(define (read-subdirs path)