Browse Source

Be more specific about Overwrite mode

tags/0.8.0
Julian Ospald 8 years ago
parent
commit
16af98b32d
No known key found for this signature in database GPG Key ID: 511B62C09D50CD28
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/HPath/IO.hs

+ 5
- 0
src/HPath/IO.hs View File

@@ -248,7 +248,7 @@ data CopyMode = Strict -- ^ fail if any target exists


-- |Copies the contents of a directory recursively to the given destination.
-- Does not follow symbolic links. This behaves more or less like:
--
-- @
-- mkdir \/destination\/dir
@@ -258,9 +258,10 @@ data CopyMode = Strict -- ^ fail if any target exists
-- For directory contents, this will ignore any file type that is not
-- `RegularFile`, `SymbolicLink` or `Directory`.
--
-- For `Overwrite` copy mode this does not prune destination directory
-- contents, so the destination might contain more files than the source after
-- the operation has completed. Permissions of existing directories are
-- fixed.
--
-- Note that there is no guaranteed ordering of the exceptions
-- contained within `RecursiveFailure` in `CollectFailures` RecursiveErrorMode.


Loading…
Cancel
Save