[plt-scheme] request to add directory-list*

From: Eli Barzilay (eli at barzilay.org)
Date: Sun May 6 15:13:09 EDT 2007

On May  6, Jon Rafkind wrote:
> I think directory-list* should be a part of mzscheme as defined 
> basically by:
>   (define (directory-list* dir)
>       (map (lambda (x) (build-path dir x)) (directory-list dir)))

Yes, this is a common operation, but so are these:

* Sorting (often you want that even if you don't want that, since bugs
  that depend on the order of files are not the kind of bugs you want
  to be responsible for)

* Removing dot-files (and hidden files on Windows).

* Filtering the resulting list with some predicate.

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.