rename bug fix
This commit is contained in:
parent
3ccf661d7c
commit
5cd340ce27
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ checkPresentExportDirectory d _k loc =
|
||||||
|
|
||||||
renameExportDirectory :: FilePath -> Key -> ExportLocation -> ExportLocation -> Annex Bool
|
renameExportDirectory :: FilePath -> Key -> ExportLocation -> ExportLocation -> Annex Bool
|
||||||
renameExportDirectory d _k oldloc newloc = liftIO $ catchBoolIO $ do
|
renameExportDirectory d _k oldloc newloc = liftIO $ catchBoolIO $ do
|
||||||
createDirectoryIfMissing True dest
|
createDirectoryIfMissing True (takeDirectory dest)
|
||||||
renameFile src dest
|
renameFile src dest
|
||||||
removeExportLocation d oldloc
|
removeExportLocation d oldloc
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue