haskell-cafe@haskell.org
[Top] [All Lists]

Re: [Haskell-cafe] Search a directory for files

Subject: Re: [Haskell-cafe] Search a directory for files
From: Eitan Goldshtrom
Date: Sat, 19 Dec 2009 22:06:27 -0500
Thanks.
This looks like exactly what I was looking for. I feel silly for not finding it myself. =P

-Eitan


Gregory Crosswhite wrote:
Look in System.Directory;  specifically, getDirectoryContents should do what 
you want.  You might also check out the FileManip package, which provides some 
convenient functionality for finding all files which match a particular pattern.

Cheers,
Greg

On Dec 19, 2009, at 6:40 PM, Eitan Goldshtrom wrote:

Hi,
I'm trying to make a program to make it easy to rename files in bulk. What I'm 
wondering is how to get a list of all files in a particular directory. I found 
System.Posix.Files and I'm planning on using the rename function in it for 
actually renaming, but I can't find an easy way to get all filenames in a 
particular directory. Does anyone know how to do it?

-Eitan
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>