Skip to content

Commit

Permalink
Clarifies the situations under which removeDirectoryRecursive may fail
Browse files Browse the repository at this point in the history
  • Loading branch information
argiopetech committed Feb 18, 2015
1 parent 692ae76 commit fd8c99d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions System/Directory.hs
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,9 @@ removeDirectory path =
#endif

-- | @'removeDirectoryRecursive' dir@ removes an existing directory /dir/
-- together with its content and all subdirectories. Be careful,
-- if the directory contains symlinks, the function will follow them.
-- together with its content and all subdirectories. Be careful, if the
-- directory contains symlinks, this function will follow them if you don't
-- have permission to delete them.
removeDirectoryRecursive :: FilePath -> IO ()
removeDirectoryRecursive startLoc = do
cont <- getDirectoryContents startLoc
Expand Down

0 comments on commit fd8c99d

Please sign in to comment.