Safe Haskell | None |
---|
Check if current directory layout agrees with specified one
For example, suppose there is a tree:
% tree . ├── baz │ └── twey └── foo ├── bar │ ├── quuz │ └── tatata └── quux
then you can write:
layout = do directory "baz" $ file_ "twey" directory "foo" $ do directory "bar" $ do file_ "quuz" file_ "tatata" file_ "quux"
and running check layout "."
should result in []
- data DLCheckFailure
- check :: Layout -> FilePath -> IO [DLCheckFailure]
Documentation
data DLCheckFailure Source
Data type representing various failures that may occur while checking directory layout