TESTS: add deleteFileSpec

This commit is contained in:
2016-05-02 23:10:22 +02:00
parent 9a11e35be0
commit c84512e3b3
6 changed files with 71 additions and 1 deletions

View File

@@ -393,6 +393,12 @@ easyCopy from to = do
-- |Deletes the given file, does not follow symlinks. Raises `eISDIR`
-- if run on a directory. Does not follow symbolic links.
--
-- Throws:
--
-- - `InappropriateType` for wrong file type (directory)
-- - `NoSuchThing` if the file does not exist
-- - `PermissionDenied` if the directory cannot be read
deleteFile :: Path Abs -> IO ()
deleteFile p = P.withAbsPath p removeLink