LIB: minor improvement to copyDir

This commit is contained in:
Julian Ospald 2015-12-21 18:54:37 +01:00
parent da32ccf619
commit 06151a3a08
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 3 additions and 3 deletions

View File

@ -138,8 +138,8 @@ runFileOp _ = return Nothing
-- * `DirDoesExist` if the target directory already exists during the Strict
-- copy mode
-- * anything that `copyFileToDir`, `getFileStatus`, `createDirectory`,
-- `easyDelete`, `readSymbolicLink`, `createDirectoryIfMissing`,
-- `removeDirectoryRecursive`, `createSymbolicLink`, `copyDir`,
-- `easyDelete`, `createDirectoryIfMissing`,
-- `removeDirectoryRecursive`, `recreateSymlink`, `copyDir`,
-- `copyFileToDir`, `getDirectoryContents` throws
copyDir :: DirCopyMode
-> FilePath -- ^ source dir
@ -183,7 +183,7 @@ copyDir cm from' to' = do
recreateSymlink' destdir n f = do
let sympoint = destdir </> n
case cm of
_ <- case cm of
-- delete old file/dir to be able to create symlink
Merge -> easyDelete sympoint
_ -> return ()