scandir: select? takes basenames, operates on (sub)dirs also
authorAndy Wingo <wingo@pobox.com>
Mon, 11 Jun 2012 10:25:24 +0000 (12:25 +0200)
committerAndy Wingo <wingo@pobox.com>
Fri, 22 Jun 2012 10:33:20 +0000 (12:33 +0200)
commit378daa5fa51f1d193f7236c2691acba59e9af539
tree46e9dff56bb29f14e341432d26f47e1515625c41
parent03fcf93bff9f02a3d12ab86be4e67b996310aad4
scandir: select? takes basenames, operates on (sub)dirs also

* module/ice-9/ftw.scm (scandir): Run the select? procedure on all
  items, including subdirs and the `.' and `..' entries.  Pass it the
  basename of the file in question instead of the full name.

* test-suite/tests/ftw.test ("scandir"): Adapt expectation for the .test
  selector.  Add test for a selector that rejects everything.
module/ice-9/ftw.scm
test-suite/tests/ftw.test