rename bug fix

This commit is contained in:
Joey Hess 2017-09-06 15:48:14 -04:00
parent 3ccf661d7c
commit 5cd340ce27
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -261,7 +261,7 @@ checkPresentExportDirectory d _k loc =
renameExportDirectory :: FilePath -> Key -> ExportLocation -> ExportLocation -> Annex Bool
renameExportDirectory d _k oldloc newloc = liftIO $ catchBoolIO $ do
createDirectoryIfMissing True dest
createDirectoryIfMissing True (takeDirectory dest)
renameFile src dest
removeExportLocation d oldloc
return True