| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
System.Console.CmdTheLine.Util
File path validation
Existing path check
fileExists :: Term String -> Term String Source
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 String Source
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.