inverted logic
This commit is contained in:
parent
f9686cd3df
commit
1d180d6ae5
|
@ -41,5 +41,5 @@ fileProperty desc a f = Property desc $ go =<< doesFileExist f
|
|||
|
||||
-- | Ensures a directory exists.
|
||||
dirExists :: FilePath -> Property
|
||||
dirExists d = check (doesDirectoryExist d) $ Property (d ++ " exists") $
|
||||
dirExists d = check (not <$> doesDirectoryExist d) $ Property (d ++ " exists") $
|
||||
makeChange $ createDirectoryIfMissing True d
|
||||
|
|
Loading…
Reference in New Issue