From bc93bb8ce75db9818cccef864a6d6e6695a18d87 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Wed, 20 Nov 2024 15:35:49 +0100 Subject: [PATCH] Fix #15422. --- .../cyberduck/core/transfer/CopyTransfer.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/core/src/main/java/ch/cyberduck/core/transfer/CopyTransfer.java b/core/src/main/java/ch/cyberduck/core/transfer/CopyTransfer.java index a25a2aea8d7..a956abc53d8 100644 --- a/core/src/main/java/ch/cyberduck/core/transfer/CopyTransfer.java +++ b/core/src/main/java/ch/cyberduck/core/transfer/CopyTransfer.java @@ -198,11 +198,6 @@ public List list(final Session session, final Path directory, f @Override public void pre(final Session source, final Session destination, final Map files, final TransferPathFilter filter, final TransferErrorCallback error, final ProgressListener listener, final ConnectionCallback callback) throws BackgroundException { - final Bulk download = source.getFeature(Bulk.class); - { - final Object id = download.pre(Type.download, files, callback); - log.debug("Obtained bulk id {} for transfer {}", id, this); - } final Bulk upload = destination.getFeature(Bulk.class); { final Map targets = new HashMap<>(); @@ -212,14 +207,15 @@ public void pre(final Session source, final Session destination, final Map final Object id = upload.pre(Type.upload, targets, callback); log.debug("Obtained bulk id {} for transfer {}", id, this); } + final Bulk download = source.getFeature(Bulk.class); + { + final Object id = download.pre(Type.download, files, callback); + log.debug("Obtained bulk id {} for transfer {}", id, this); + } } @Override public void post(final Session source, final Session destination, final Map files, final TransferErrorCallback error, final ProgressListener listener, final ConnectionCallback callback) throws BackgroundException { - final Bulk download = source.getFeature(Bulk.class); - { - download.post(Type.download, files, callback); - } final Bulk upload = destination.getFeature(Bulk.class); { final Map targets = new HashMap<>(); @@ -228,6 +224,10 @@ public void post(final Session source, final Session destination, final Ma } upload.post(Type.upload, targets, callback); } + final Bulk download = source.getFeature(Bulk.class); + { + download.post(Type.download, files, callback); + } } @Override