
23 Jun
2009
23 Jun
'09
3:42 p.m.
Hello Duncan, Tuesday, June 23, 2009, 6:34:17 PM, you wrote:
import System.Posix.Files (getFileStatus, isDirectory)
Yeah, if we could make a standard portable variant of this, that'd be great.
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.Ziganshin@gmail.com