Improve documentation
This commit is contained in:
parent
ed06543981
commit
6da01e382f
@ -247,8 +247,13 @@ data CopyMode = Strict -- ^ fail if any target exists
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- |Copies a directory recursively to the given destination.
|
-- |Copies the contents of a directory recursively to the given destination.
|
||||||
-- Does not follow symbolic links.
|
-- Does not follow symbolic links. This behaves like:
|
||||||
|
--
|
||||||
|
-- @
|
||||||
|
-- mkdir \/destination\/dir
|
||||||
|
-- cp -R \/source\/dir\/* \/destination\/dir\/
|
||||||
|
-- @
|
||||||
--
|
--
|
||||||
-- For directory contents, this will ignore any file type that is not
|
-- For directory contents, this will ignore any file type that is not
|
||||||
-- `RegularFile`, `SymbolicLink` or `Directory`.
|
-- `RegularFile`, `SymbolicLink` or `Directory`.
|
||||||
@ -292,8 +297,9 @@ data CopyMode = Strict -- ^ fail if any target exists
|
|||||||
-- Throws in `Strict` CopyMode only:
|
-- Throws in `Strict` CopyMode only:
|
||||||
--
|
--
|
||||||
-- - `AlreadyExists` if destination already exists
|
-- - `AlreadyExists` if destination already exists
|
||||||
copyDirRecursive :: Path Abs -- ^ source dir
|
copyDirRecursive :: Path Abs -- ^ copy contents of this source dir
|
||||||
-> Path Abs -- ^ full destination
|
-> Path Abs -- ^ to this full destination (parent dirs
|
||||||
|
-- are not automatically created)
|
||||||
-> CopyMode
|
-> CopyMode
|
||||||
-> RecursiveErrorMode
|
-> RecursiveErrorMode
|
||||||
-> IO ()
|
-> IO ()
|
||||||
|
Loading…
Reference in New Issue
Block a user