LIB: improve unsafeCopyFile doc
This commit is contained in:
parent
5bcbbcc69c
commit
bd022956f5
@ -323,6 +323,9 @@ unsafeCopyFile cm from@(_ :/ RegFile {}) to@(_ :/ Dir {}) fn
|
|||||||
Strict -> throwFileDoesExist to'
|
Strict -> throwFileDoesExist to'
|
||||||
_ -> return ()
|
_ -> return ()
|
||||||
|
|
||||||
|
-- from sendfile(2) manpage:
|
||||||
|
-- Applications may wish to fall back to read(2)/write(2) in the case
|
||||||
|
-- where sendfile() fails with EINVAL or ENOSYS.
|
||||||
catchErrno [eINVAL, eNOSYS]
|
catchErrno [eINVAL, eNOSYS]
|
||||||
(sendFileCopy (fullPathS from) (P.fromAbs to'))
|
(sendFileCopy (fullPathS from) (P.fromAbs to'))
|
||||||
(void $ fallbackCopy (fullPathS from) (P.fromAbs to'))
|
(void $ fallbackCopy (fullPathS from) (P.fromAbs to'))
|
||||||
|
Loading…
Reference in New Issue
Block a user