Hello Colin, Monday, June 22, 2009, 10:12:57 AM, you 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. isdir <- withFileStatus "isdir?" filename isDirectory module System.Directory withFileStatus :: String -> FilePath -> (Ptr CStat -> IO a) -> IO a isDirectory :: Ptr CStat -> IO Bool -- Best regards, Bulat mailto:bulat.zigans...@gmail.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe