HPath.IO: minor doc fix
This commit is contained in:
parent
05fcad14f1
commit
ee3ace362b
@ -341,7 +341,7 @@ recreateSymlink symsource newsym
|
|||||||
-- - `SameFile` if source and destination are the same file (`HPathIOException`)
|
-- - `SameFile` if source and destination are the same file (`HPathIOException`)
|
||||||
-- - `AlreadyExists` if destination already exists
|
-- - `AlreadyExists` if destination already exists
|
||||||
--
|
--
|
||||||
-- Note: calls `sendfile`
|
-- Note: calls `read`/`write`
|
||||||
copyFile :: Path Abs -- ^ source file
|
copyFile :: Path Abs -- ^ source file
|
||||||
-> Path Abs -- ^ destination file
|
-> Path Abs -- ^ destination file
|
||||||
-> IO ()
|
-> IO ()
|
||||||
@ -358,8 +358,7 @@ copyFile from to = do
|
|||||||
--
|
--
|
||||||
-- Safety/reliability concerns:
|
-- Safety/reliability concerns:
|
||||||
--
|
--
|
||||||
-- * not atomic
|
-- * not atomic, since it uses read/write
|
||||||
-- * falls back to delete-copy method with explicit checks
|
|
||||||
--
|
--
|
||||||
-- Throws:
|
-- Throws:
|
||||||
--
|
--
|
||||||
@ -370,7 +369,7 @@ copyFile from to = do
|
|||||||
-- - `InvalidArgument` if source file is wrong type (directory)
|
-- - `InvalidArgument` if source file is wrong type (directory)
|
||||||
-- - `SameFile` if source and destination are the same file (`HPathIOException`)
|
-- - `SameFile` if source and destination are the same file (`HPathIOException`)
|
||||||
--
|
--
|
||||||
-- Note: calls `sendfile`
|
-- Note: calls `read`/`write`
|
||||||
copyFileOverwrite :: Path Abs -- ^ source file
|
copyFileOverwrite :: Path Abs -- ^ source file
|
||||||
-> Path Abs -- ^ destination file
|
-> Path Abs -- ^ destination file
|
||||||
-> IO ()
|
-> IO ()
|
||||||
|
Loading…
Reference in New Issue
Block a user