From ee3ace362b2d26c4b9738d41761504bd8b6c4c69 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Tue, 10 May 2016 12:05:55 +0200 Subject: [PATCH] HPath.IO: minor doc fix --- src/HPath/IO.hs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/HPath/IO.hs b/src/HPath/IO.hs index a3a620e..62c30bc 100644 --- a/src/HPath/IO.hs +++ b/src/HPath/IO.hs @@ -341,7 +341,7 @@ recreateSymlink symsource newsym -- - `SameFile` if source and destination are the same file (`HPathIOException`) -- - `AlreadyExists` if destination already exists -- --- Note: calls `sendfile` +-- Note: calls `read`/`write` copyFile :: Path Abs -- ^ source file -> Path Abs -- ^ destination file -> IO () @@ -358,8 +358,7 @@ copyFile from to = do -- -- Safety/reliability concerns: -- --- * not atomic --- * falls back to delete-copy method with explicit checks +-- * not atomic, since it uses read/write -- -- Throws: -- @@ -370,7 +369,7 @@ copyFile from to = do -- - `InvalidArgument` if source file is wrong type (directory) -- - `SameFile` if source and destination are the same file (`HPathIOException`) -- --- Note: calls `sendfile` +-- Note: calls `read`/`write` copyFileOverwrite :: Path Abs -- ^ source file -> Path Abs -- ^ destination file -> IO ()