aboutsummaryrefslogtreecommitdiff
path: root/Remote/Rsync.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-01-29 15:21:02 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-01-29 15:21:02 -0400
commite128cc828b5d601e7a24c21689f38fe3bb54bbd8 (patch)
treece34cbff1c25273a9f5ce3c0f91b15e560e4af03 /Remote/Rsync.hs
parent2f4061cce0eb1189d194cef6ef2e446da53cd854 (diff)
change a few renameFile's to rename
AFAIK, none of these ever operate on directories, but nor do I want to explicitly check if they're files and fail if not.
Diffstat (limited to 'Remote/Rsync.hs')
-rw-r--r--Remote/Rsync.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Remote/Rsync.hs b/Remote/Rsync.hs
index 409b5b760..430554ab8 100644
--- a/Remote/Rsync.hs
+++ b/Remote/Rsync.hs
@@ -296,7 +296,7 @@ rsyncSend o callback k canrename src = withRsyncScratchDir $ \tmp -> do
liftIO $ createDirectoryIfMissing True $ parentDir dest
ok <- liftIO $ if canrename
then do
- renameFile src dest
+ rename src dest
return True
else createLinkOrCopy src dest
ps <- sendParams