[plt-scheme] Reading a directory structure
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.
Aditya,
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.
--Carl