fix behavior of copy --from --to
Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
parent
3585481470
commit
77266e46dd
2 changed files with 8 additions and 5 deletions
|
@ -432,9 +432,10 @@ fromToPerform src dest removewhen key afile = do
|
|||
|
||||
todest mcontentlock removewhen' = toPerform' mcontentlock dest removewhen' key afile False
|
||||
|
||||
dropfromsrc adjusttocheck =
|
||||
logMove (Remote.uuid src) (Remote.uuid dest) True key $ \deststartedwithcopy ->
|
||||
dropfromsrc adjusttocheck = case removewhen of
|
||||
RemoveSafe -> logMove (Remote.uuid src) (Remote.uuid dest) True key $ \deststartedwithcopy ->
|
||||
fromDrop src (Remote.uuid dest) deststartedwithcopy key afile adjusttocheck
|
||||
RemoveNever -> next (return True)
|
||||
|
||||
combinecleanups a b = a >>= \case
|
||||
Just cleanupa -> b True >>= \case
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue