[Haskell] Reading a directory tree

John Hughes rjmh at cs.chalmers.se
Tue Jun 22 05:37:27 EDT 2004


> Hi,
>
> I'm looking for a way to iteratively read all the files in a directory and
> its subdirectories, given the filepath of the top-level dir.
> For example, I want to find a file, corresponding to a given filename, in
> a directory and its subdirectories.
>
> Is there a way to implement this in Haskell?
>

Just a supplement to my previous message: you can find better
documentation of the Directory library here:

http://www.haskell.org/ghc/docs/latest/html/libraries/base/System.Directory.html

John Hughes


More information about the Haskell mailing list