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