From d3d4d35aa0e77a0f43ea7428bc23fec277ca162a Mon Sep 17 00:00:00 2001 From: David Kocher Date: Sat, 23 Nov 2024 16:08:52 +0100 Subject: [PATCH] Always set maxPartCount parameter. --- .../java/ch/cyberduck/core/b2/B2LargeUploadPartService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backblaze/src/main/java/ch/cyberduck/core/b2/B2LargeUploadPartService.java b/backblaze/src/main/java/ch/cyberduck/core/b2/B2LargeUploadPartService.java index b90a65f7a57..b6146bfc422 100644 --- a/backblaze/src/main/java/ch/cyberduck/core/b2/B2LargeUploadPartService.java +++ b/backblaze/src/main/java/ch/cyberduck/core/b2/B2LargeUploadPartService.java @@ -20,6 +20,7 @@ import ch.cyberduck.core.PathContainerService; import ch.cyberduck.core.SimplePathPredicate; import ch.cyberduck.core.exception.BackgroundException; +import ch.cyberduck.core.preferences.HostPreferences; import org.apache.commons.codec.binary.StringUtils; import org.apache.logging.log4j.LogManager; @@ -121,7 +122,7 @@ public List list(final String fileid) throws BackgroundExc Integer startPartNumber = null; do { final B2ListPartsResponse response = session.getClient().listParts( - fileid, startPartNumber, null); + fileid, startPartNumber, new HostPreferences(session.getHost()).getInteger("b2.listing.chunksize")); completed.addAll(response.getFiles()); startPartNumber = response.getNextPartNumber(); }