[Haskell-cafe] How to determine if a FilePath is a directory name
or regular file?
Colin Paul Adams
colin at colina.demon.co.uk
Mon Jun 22 02:29:18 EDT 2009
>>>>> "Judah" == Judah Jacobson <judah.jacobson at gmail.com> writes:
Judah> On Sun, Jun 21, 2009 at 11:12 PM, Colin Paul
Judah> Adams<colin at colina.demon.co.uk> wrote:
>> I've been hoogling like bad to try to determine if a function
>> like this exists.
>>
>> getDirectoryContents returns sub-directories as well as file
>> names. I want only the latter, so I'm looking for a suitable
>> filter.
Judah> Use System.Directory.doesDirectoryExist/doesFileExist.
Thanks.
it seems it's time i went to the optician again.
--
Colin Adams
Preston Lancashire
More information about the Haskell-Cafe
mailing list