Show
Ignore:
Timestamp:
06/03/06 08:12:31 (3 years ago)
Author:
audreyt
Message:

* Change file tests to use native POSIX stats in preparation

of true chained tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/FileTest.hs

    r3372 r10466  
    5959 
    6060fileTestExists :: FilePath -> IO Val 
    61 fileTestExists f = do 
    62     b1 <- doesFileExist f 
    63     b2 <- doesDirectoryExist f 
    64     return $ valFromBool f (b1 || b2) 
     61fileTestExists f = doesExist f >>= return . (valFromBool f) 
    6562 
    6663fileTestIsFile :: FilePath -> IO Val