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

From: Eli Barzilay (eli at barzilay.org)
Date: Sun May 6 23:18:46 EDT 2007

On May  6, Matthias Felleisen wrote:
> Why don't you put together a planet package with this functionality?

(Just for this, I don't think that there's a need for a library -- the
whole thing is easily described by simple functions, just like Jon's
original request.)


> On May 6, 2007, at 3:13 PM, Eli Barzilay wrote:
> 
> > 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.