[Haskell-cafe] [Beginner's Question] How to read filenames from a DirStream

Brandon Michael Moore brandon at heave.ugcs.caltech.edu
Mon Apr 9 15:18:38 EDT 2007


It looks like all you can do with DirStream is get the filename, not
look at any other fields of the dirent - actually, it seems name
is the only standard field.  You might as well use
getDirectoryContents, unless you have a directory so huge that
a list of all the filenames takes too much memory!

Brandon Moore


More information about the Haskell-Cafe mailing list