[plt-scheme] Reading a directory structure

From: Carl Eastlund (carl.eastlund at gmail.com)
Date: Wed Mar 25 15:51:08 EDT 2009

On Wed, Mar 25, 2009 at 3:20 PM, aditya shukla
<adityashukla1983 at gmail.com> wrote:
> (define get-directories(lambda(path)
>                          (directory-list path)))
> (get-directories "/")
> This gives an error directory-list: name is not defined, not a parameter,
> and not a primitive name.
> language used is advanced student custom
> Please hep me to fix it.


If you want to use the full range of Scheme tools, you should use the
full Scheme language for those programs.  Switch to the Module
language level, and use the first line "#lang scheme" that DrScheme
will fill in for you.  Then utilities like directory-list will be
available by default.


Posted on the users mailing list.