[plt-scheme] get-directory question

From: Eli Barzilay (eli at barzilay.org)
Date: Sun Jun 21 21:53:57 EDT 2009

Another option is to wrap the call with `parameterize' instead of
changing it globally as your original code does.  The two can be
combined with:

  (parameterize ([current-directory dir])
    (for/list ([name (directory-list)] #:when (file-exists? name))
      (build-path dir name)))


On Jun 21, praimon wrote:
> Thanks, that is better.
> regards,
> praimon
> 
> On Sun, Jun 21, 2009 at 8:39 PM, Robby
> Findler<robby at eecs.northwestern.edu> wrote:
> > Probably best to use build-path with the result of (get-directory) and
> > the elements of directory-list.
> >
> > Robby
> >
> > On Sunday, June 21, 2009, praimon <praimon at gmail.com> wrote:
> >> hello,
> >> Here's something I don't understand. On 4.1.5 winxp:
> >> (filter file-exists? (directory-list (get-directory)))
> >> will return the null list for just about every gotten directory.

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


Posted on the users mailing list.