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

From: Ryan Culpepper (ryanc at ccs.neu.edu)
Date: Sun May 6 18:14:54 EDT 2007

On Sun, 2007-05-06 at 17:12 -0400, Matthias Felleisen wrote:
> Why don't you put together a planet package with this functionality?

The "scripting.plt" planet package has some of this already:

(require (planet "file.ss" ("ryanc" "scripting.plt" 1)))

Look at 'directory-list/paths' and other related procedures in the
package docs.

Ryan


> 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!
> > _________________________________________________
> >   For list-related administrative tasks:
> >   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme



Posted on the users mailing list.