Safe Haskell | Safe-Infered |
---|
File path validation
Existing path check
fileExists :: Term String -> Term StringSource
fileExists
term
checks that String
in term
is a path to an existing
file. If it is not, exit with an explanatory message for the user.
pathExists :: Term String -> Term StringSource
pathExists
term
checks that String
in term
is a path to an existing
file or directory. If it is not, exit with an explanatory message for the
user.
Existing paths check
filesExist :: Term [String] -> Term [String]Source
filesExist
term
is as fileExists
but for a term
containing a list
of file paths.
pathsExist :: Term [String] -> Term [String]Source
pathsExist
term
is as pathExists
but for a term
containing a list
of paths.